From: Suresh Reddy Date: Wed, 30 Dec 2015 06:28:57 +0000 (-0500) Subject: be2net: avoid configuring VEPA mode on BE3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac0f5fba632023a39be26ac42afd5cfc1f2cc0b4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git be2net: avoid configuring VEPA mode on BE3 BE3 chip doesn't support VEPA mode. Signed-off-by: Suresh Reddy Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 34e324f20d80..2f76cbeab1e4 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -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;