developer | 7e32f7e | 2022-05-18 21:10:08 +0800 | [diff] [blame^] | 1 | --- a/drivers/net/macsec.c |
| 2 | +++ b/drivers/net/macsec.c |
| 3 | @@ -16,7 +16,6 @@ |
| 4 | #include <net/genetlink.h> |
| 5 | #include <net/sock.h> |
| 6 | #include <net/gro_cells.h> |
| 7 | -#include <linux/if_arp.h> |
| 8 | |
| 9 | #include <uapi/linux/if_macsec.h> |
| 10 | |
| 11 | @@ -3240,8 +3239,6 @@ static int macsec_newlink(struct net *ne |
| 12 | real_dev = __dev_get_by_index(net, nla_get_u32(tb[IFLA_LINK])); |
| 13 | if (!real_dev) |
| 14 | return -ENODEV; |
| 15 | - if (real_dev->type != ARPHRD_ETHER) |
| 16 | - return -EINVAL; |
| 17 | |
| 18 | dev->priv_flags |= IFF_MACSEC; |
| 19 | |