macsec: set network devtype
authorstephen hemminger <stephen@networkplumber.org>
Wed, 7 Sep 2016 21:07:32 +0000 (14:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Sep 2016 23:52:43 +0000 (16:52 -0700)
The netdevice type structure for macsec was being defined but never used.
To set the network device type the macro SET_NETDEV_DEVTYPE must be called.
Compile tested only, I don't use macsec.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c

index 351e701eb043b340204f1f07aff81ef100c7b5d6..3ea47f28e143bd03113215f45a0ad7b7eb9ceb61 100644 (file)
@@ -2973,6 +2973,7 @@ static void macsec_setup(struct net_device *dev)
        dev->priv_flags |= IFF_NO_QUEUE;
        dev->netdev_ops = &macsec_netdev_ops;
        dev->destructor = macsec_free_netdev;
+       SET_NETDEV_DEVTYPE(dev, &macsec_type);
 
        eth_zero_addr(dev->broadcast);
 }