net: Disallow providing non zero VLAN ID for NIC drivers FDB add flow
The current implementations all use dev_uc_add_excl() and such whose API
doesn't support vlans, so we can't make it with NICs HW for now.
Fixes: f6f6424ba7
('net: make vid as a parameter for ndo_fdb_add/ndo_fdb_del')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

کامیت شده توسط
David S. Miller

والد
c3f2511fea
کامیت
65891feac2
@@ -7549,6 +7549,11 @@ static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
|
||||
if (!(pf->flags & I40E_FLAG_SRIOV_ENABLED))
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
if (vid) {
|
||||
pr_info("%s: vlans aren't supported yet for dev_uc|mc_add()\n", dev->name);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Hardware does not support aging addresses so if a
|
||||
* ndm_state is given only allow permanent addresses
|
||||
*/
|
||||
|
مرجع در شماره جدید
Block a user