Skip to content

Commit

Permalink
be2net: Fix number of vlan slots in flex mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ajit Khaparde authored and David S. Miller committed Mar 19, 2012
1 parent fbc13f0 commit 456d9c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 456d9c9

Please sign in to comment.