diff options
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_main.c | 5 | ||||
-rw-r--r-- | net/core/rtnetlink.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index 0a7ea4c5f9d3..a5f2660d552d 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c | |||
@@ -7549,6 +7549,11 @@ static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], | |||
7549 | if (!(pf->flags & I40E_FLAG_SRIOV_ENABLED)) | 7549 | if (!(pf->flags & I40E_FLAG_SRIOV_ENABLED)) |
7550 | return -EOPNOTSUPP; | 7550 | return -EOPNOTSUPP; |
7551 | 7551 | ||
7552 | if (vid) { | ||
7553 | pr_info("%s: vlans aren't supported yet for dev_uc|mc_add()\n", dev->name); | ||
7554 | return -EINVAL; | ||
7555 | } | ||
7556 | |||
7552 | /* Hardware does not support aging addresses so if a | 7557 | /* Hardware does not support aging addresses so if a |
7553 | * ndm_state is given only allow permanent addresses | 7558 | * ndm_state is given only allow permanent addresses |
7554 | */ | 7559 | */ |
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index d06107d36ec8..9cf6fe9ddc0c 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -2368,6 +2368,11 @@ int ndo_dflt_fdb_add(struct ndmsg *ndm, | |||
2368 | return err; | 2368 | return err; |
2369 | } | 2369 | } |
2370 | 2370 | ||
2371 | if (vid) { | ||
2372 | pr_info("%s: vlans aren't supported yet for dev_uc|mc_add()\n", dev->name); | ||
2373 | return err; | ||
2374 | } | ||
2375 | |||
2371 | if (is_unicast_ether_addr(addr) || is_link_local_ether_addr(addr)) | 2376 | if (is_unicast_ether_addr(addr) || is_link_local_ether_addr(addr)) |
2372 | err = dev_uc_add_excl(dev, addr); | 2377 | err = dev_uc_add_excl(dev, addr); |
2373 | else if (is_multicast_ether_addr(addr)) | 2378 | else if (is_multicast_ether_addr(addr)) |