| From 4bb7436045da199379ac21e17d45d1e4bce7d581 Mon Sep 17 00:00:00 2001 |
| From: Andrew Lassalle <andrewlassalle@chromium.org> |
| Date: Thu, 17 Dec 2020 11:33:30 -0800 |
| Subject: [PATCH] BACKPORT: net: qualcomm: rmnet: Add rmnet mux_id and flags to |
| netlink |
| |
| Define new netlink attributes for rmnet mux_id and flags. These |
| flags / mux_id were earlier using vlan flags / id respectively. |
| |
| This backport of 14452ca3b5ce3 only includes changes in if_link.h |
| |
| Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> |
| Signed-off-by: David S. Miller <davem@davemloft.net> |
| (cherry picked from commit 14452ca3b5ce304fb2fea96dbc9ca1e4e7978551) |
| Change-Id: I448a440dc35d4037547b6a26399cb0ccb01c3577 |
| --- |
| include/uapi/linux/if_link.h | 21 +++++++++++++++++++++ |
| 1 file changed, 21 insertions(+) |
| |
| diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h |
| index 1f00f0cd6790..55b7baae0cbd 100644 |
| --- a/include/uapi/linux/if_link.h |
| +++ b/include/uapi/linux/if_link.h |
| @@ -928,4 +928,25 @@ enum { |
| IFLA_EVENT_BONDING_OPTIONS, /* change in bonding options */ |
| }; |
| |
| +/* rmnet section */ |
| + |
| +#define RMNET_FLAGS_INGRESS_DEAGGREGATION (1U << 0) |
| +#define RMNET_FLAGS_INGRESS_MAP_COMMANDS (1U << 1) |
| +#define RMNET_FLAGS_INGRESS_MAP_CKSUMV4 (1U << 2) |
| +#define RMNET_FLAGS_EGRESS_MAP_CKSUMV4 (1U << 3) |
| + |
| +enum { |
| + IFLA_RMNET_UNSPEC, |
| + IFLA_RMNET_MUX_ID, |
| + IFLA_RMNET_FLAGS, |
| + __IFLA_RMNET_MAX, |
| +}; |
| + |
| +#define IFLA_RMNET_MAX (__IFLA_RMNET_MAX - 1) |
| + |
| +struct ifla_rmnet_flags { |
| + __u32 flags; |
| + __u32 mask; |
| +}; |
| + |
| #endif /* _UAPI_LINUX_IF_LINK_H */ |
| -- |
| 2.29.2 |
| |