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:
Родитель
fbc13f018c
Коммит
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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче