mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 09:41:44 +00:00
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 <ajit.khaparde@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fbc13f018c
commit
456d9c962b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user