From: Ajit Khaparde Date: Sun, 18 Mar 2012 06:23:31 +0000 (+0000) Subject: be2net: Fix number of vlan slots in flex mode X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=456d9c962bb5824423fa93277c8f7f5b2e3d5e1c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git be2net: Fix number of vlan slots in flex mode In flex10 mode the number of vlan slots supported is halved. Signed-off-by: Ajit Khaparde 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 b4348b8ee529..1c84bc81b8f1 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -3292,7 +3292,7 @@ static int be_get_config(struct be_adapter *adapter) return status; if (adapter->function_mode & FLEX10_MODE) - adapter->max_vlans = BE_NUM_VLANS_SUPPORTED/4; + adapter->max_vlans = BE_NUM_VLANS_SUPPORTED/8; else adapter->max_vlans = BE_NUM_VLANS_SUPPORTED;