Commit b7d47ca2 authored by Daniel Borkmann's avatar Daniel Borkmann Committed by David S. Miller

net: nlmon: flag nlmon devs with LLTX/SG

As in xmit path we merely update statistics and free the skb, we
can mark the device with LLTX feature, so that upper layers can
avoid taking the single txq lock on xmit. While at it, also add
missing NETIF_F_SG.
Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 63ea7dce
...@@ -136,7 +136,8 @@ static void nlmon_setup(struct net_device *dev) ...@@ -136,7 +136,8 @@ static void nlmon_setup(struct net_device *dev)
dev->ethtool_ops = &nlmon_ethtool_ops; dev->ethtool_ops = &nlmon_ethtool_ops;
dev->destructor = free_netdev; dev->destructor = free_netdev;
dev->features = NETIF_F_FRAGLIST | NETIF_F_HIGHDMA; dev->features = NETIF_F_SG | NETIF_F_FRAGLIST |
NETIF_F_HIGHDMA | NETIF_F_LLTX;
dev->flags = IFF_NOARP; dev->flags = IFF_NOARP;
/* That's rather a softlimit here, which, of course, /* That's rather a softlimit here, which, of course,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment