mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-05-02 18:15:03 -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
@@ -63,13 +63,13 @@ static void nlmon_setup(struct net_device *dev)
|
||||
{
|
||||
dev->type = ARPHRD_NETLINK;
|
||||
dev->priv_flags |= IFF_NO_QUEUE;
|
||||
dev->lltx = true;
|
||||
|
||||
dev->netdev_ops = &nlmon_ops;
|
||||
dev->ethtool_ops = &nlmon_ethtool_ops;
|
||||
dev->needs_free_netdev = true;
|
||||
|
||||
dev->features = NETIF_F_SG | NETIF_F_FRAGLIST |
|
||||
NETIF_F_HIGHDMA | NETIF_F_LLTX;
|
||||
dev->features = NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_HIGHDMA;
|
||||
dev->flags = IFF_NOARP;
|
||||
dev->pcpu_stat_type = NETDEV_PCPU_STAT_LSTATS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user