Skip to contentSkip to conversation

net: nlmon: flag nlmon devs with LLTX/SG

PATCH Applied Daniel Borkmann 3 participants 3 messages Mar 27, 2014 – Mar 28, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/nlmon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/nlmon.c +2 -1
index 6929b03..34924df 100644
@@ -136,7 +136,8 @@ static void nlmon_setup(struct net_device *dev)
 	dev->ethtool_ops = &nlmon_ethtool_ops;
 	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;
 
 	/* That's rather a softlimit here, which, of course,
Signature · 1 line
1.7.11.7
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Daniel Borkmann

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.

---
 drivers/net/nlmon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)