--- a/drivers/net/macsec.c | |
+++ b/drivers/net/macsec.c | |
@@ -16,7 +16,6 @@ | |
#include <net/genetlink.h> | |
#include <net/sock.h> | |
#include <net/gro_cells.h> | |
-#include <linux/if_arp.h> | |
#include <uapi/linux/if_macsec.h> | |
@@ -3240,8 +3239,6 @@ static int macsec_newlink(struct net *ne | |
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; | |