mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-23 08:55:56 -04:00
netdev_features: convert NETIF_F_LLTX to dev->lltx
NETIF_F_LLTX can't be changed via Ethtool and is not a feature, rather an attribute, very similar to IFF_NO_QUEUE (and hot). Free one netdev_features_t bit and make it a "hot" private flag. 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
beb5a9bea8
commit
00d066a4d4
@@ -24,8 +24,7 @@ enum {
|
||||
NETIF_F_HW_VLAN_CTAG_FILTER_BIT,/* Receive filtering on VLAN CTAGs */
|
||||
NETIF_F_VLAN_CHALLENGED_BIT, /* Device cannot handle VLAN packets */
|
||||
NETIF_F_GSO_BIT, /* Enable software GSO. */
|
||||
NETIF_F_LLTX_BIT, /* LockLess TX - deprecated. Please */
|
||||
/* do not use LLTX in new drivers */
|
||||
__UNUSED_NETIF_F_12,
|
||||
NETIF_F_NETNS_LOCAL_BIT, /* Does not change network namespaces */
|
||||
NETIF_F_GRO_BIT, /* Generic receive offload */
|
||||
NETIF_F_LRO_BIT, /* large receive offload */
|
||||
@@ -120,7 +119,6 @@ enum {
|
||||
#define NETIF_F_HW_VLAN_CTAG_TX __NETIF_F(HW_VLAN_CTAG_TX)
|
||||
#define NETIF_F_IP_CSUM __NETIF_F(IP_CSUM)
|
||||
#define NETIF_F_IPV6_CSUM __NETIF_F(IPV6_CSUM)
|
||||
#define NETIF_F_LLTX __NETIF_F(LLTX)
|
||||
#define NETIF_F_LOOPBACK __NETIF_F(LOOPBACK)
|
||||
#define NETIF_F_LRO __NETIF_F(LRO)
|
||||
#define NETIF_F_NETNS_LOCAL __NETIF_F(NETNS_LOCAL)
|
||||
@@ -193,7 +191,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_LLTX | NETIF_F_NETNS_LOCAL)
|
||||
NETIF_F_NETNS_LOCAL)
|
||||
|
||||
/* 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