netdev_features: convert NETIF_F_NETNS_LOCAL to dev->netns_local
"Interface can't change network namespaces" is rather an attribute, not a feature, and it can't be changed via Ethtool. Make it a "cold" private flag instead of a netdev_feature and free one more bit. Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
00d066a4d4
commit
05c1280a2b
@@ -25,7 +25,7 @@ enum {
|
||||
NETIF_F_VLAN_CHALLENGED_BIT, /* Device cannot handle VLAN packets */
|
||||
NETIF_F_GSO_BIT, /* Enable software GSO. */
|
||||
__UNUSED_NETIF_F_12,
|
||||
NETIF_F_NETNS_LOCAL_BIT, /* Does not change network namespaces */
|
||||
__UNUSED_NETIF_F_13,
|
||||
NETIF_F_GRO_BIT, /* Generic receive offload */
|
||||
NETIF_F_LRO_BIT, /* large receive offload */
|
||||
|
||||
@@ -121,7 +121,6 @@ enum {
|
||||
#define NETIF_F_IPV6_CSUM __NETIF_F(IPV6_CSUM)
|
||||
#define NETIF_F_LOOPBACK __NETIF_F(LOOPBACK)
|
||||
#define NETIF_F_LRO __NETIF_F(LRO)
|
||||
#define NETIF_F_NETNS_LOCAL __NETIF_F(NETNS_LOCAL)
|
||||
#define NETIF_F_NOCACHE_COPY __NETIF_F(NOCACHE_COPY)
|
||||
#define NETIF_F_NTUPLE __NETIF_F(NTUPLE)
|
||||
#define NETIF_F_RXCSUM __NETIF_F(RXCSUM)
|
||||
@@ -190,8 +189,7 @@ static inline int find_next_netdev_feature(u64 feature, unsigned long start)
|
||||
|
||||
/* Features valid for ethtool to change */
|
||||
/* = all defined minus driver/device-class-related */
|
||||
#define NETIF_F_NEVER_CHANGE (NETIF_F_VLAN_CHALLENGED | \
|
||||
NETIF_F_NETNS_LOCAL)
|
||||
#define NETIF_F_NEVER_CHANGE NETIF_F_VLAN_CHALLENGED
|
||||
|
||||
/* remember that ((t)1 << t_BITS) is undefined in C99 */
|
||||
#define NETIF_F_ETHTOOL_BITS ((__NETIF_F_BIT(NETDEV_FEATURE_COUNT - 1) | \
|
||||
|
||||
Reference in New Issue
Block a user