macsec: Convert to using IFF_NO_QUEUE
authorPhil Sutter <phil@nwl.cc>
Fri, 22 Apr 2016 12:02:42 +0000 (14:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2016 20:21:44 +0000 (16:21 -0400)
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c

index 84d3e5ca8817197a15165d2c61f8a0f58550c5b6..6caa72402de7db937a99319c8aba1e424c968568 100644 (file)
@@ -2826,7 +2826,7 @@ static void macsec_free_netdev(struct net_device *dev)
 static void macsec_setup(struct net_device *dev)
 {
        ether_setup(dev);
-       dev->tx_queue_len = 0;
+       dev->priv_flags |= IFF_NO_QUEUE;
        dev->netdev_ops = &macsec_netdev_ops;
        dev->destructor = macsec_free_netdev;