mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Overlapping header include additions in macsec.c A bug fix in 'net' overlapping with the removal of 'version' string in ena_netdev.c Overlapping test additions in selftests Makefile Overlapping PCI ID table adjustments in iwlwifi driver. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <net/macsec.h>
|
||||
#include <linux/phy.h>
|
||||
#include <linux/byteorder/generic.h>
|
||||
#include <linux/if_arp.h>
|
||||
|
||||
#include <uapi/linux/if_macsec.h>
|
||||
|
||||
@@ -3856,6 +3857,8 @@ static int macsec_newlink(struct net *net, struct net_device *dev,
|
||||
real_dev = __dev_get_by_index(net, nla_get_u32(tb[IFLA_LINK]));
|
||||
if (!real_dev)
|
||||
return -ENODEV;
|
||||
if (real_dev->type != ARPHRD_ETHER)
|
||||
return -EINVAL;
|
||||
|
||||
dev->priv_flags |= IFF_MACSEC;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user