mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
be2net: avoid configuring VEPA mode on BE3
BE3 chip doesn't support VEPA mode. Signed-off-by: Suresh Reddy <suresh.reddy@avagotech.com> Signed-off-by: Sathya Perla <sathya.perla@avagotech.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d9d426af6b
commit
ac0f5fba63
@ -5108,6 +5108,9 @@ static int be_ndo_bridge_setlink(struct net_device *dev, struct nlmsghdr *nlh,
|
||||
return -EINVAL;
|
||||
|
||||
mode = nla_get_u16(attr);
|
||||
if (BE3_chip(adapter) && mode == BRIDGE_MODE_VEPA)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
if (mode != BRIDGE_MODE_VEPA && mode != BRIDGE_MODE_VEB)
|
||||
return -EINVAL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user