mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 05:09:17 -04: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:
committed by
David S. Miller
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user