net: nlmon: flag nlmon devs with LLTX/SG
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 27 Mar 2014 15:34:59 +0000 (16:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2014 20:49:47 +0000 (16:49 -0400)
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: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/nlmon.c

index 6929b03..34924df 100644 (file)
@@ -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,