summaryrefslogtreecommitdiffstats
path: root/drivers/net/macsec.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2016-09-07 23:07:32 +0200
committerDavid S. Miller <davem@davemloft.net>2016-09-10 01:52:43 +0200
commitc24acf03c7352bd10a99e58b0366b2acf8722856 (patch)
tree6803e3dff36542362a12f7297cab37911d77f6ad /drivers/net/macsec.c
parentrtnetlink: remove unused ifla_stats_policy (diff)
downloadlinux-c24acf03c7352bd10a99e58b0366b2acf8722856.tar.xz
linux-c24acf03c7352bd10a99e58b0366b2acf8722856.zip
macsec: set network devtype
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>
Diffstat (limited to 'drivers/net/macsec.c')
-rw-r--r--drivers/net/macsec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c
index 351e701eb043..3ea47f28e143 100644
--- a/drivers/net/macsec.c
+++ b/drivers/net/macsec.c
@@ -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);
}