diff options
author | stephen hemminger <stephen@networkplumber.org> | 2016-09-07 23:07:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-10 01:52:43 +0200 |
commit | c24acf03c7352bd10a99e58b0366b2acf8722856 (patch) | |
tree | 6803e3dff36542362a12f7297cab37911d77f6ad /drivers/net/macsec.c | |
parent | rtnetlink: remove unused ifla_stats_policy (diff) | |
download | linux-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.c | 1 |
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); } |