Patchwork [net-next,3/4] be2net: Fix number of vlan slots in flex mode

login
register
mail settings
Submitter Ajit Khaparde
Date March 18, 2012, 4:23 p.m.
Message ID <20120318162331.GA7681@akhaparde-VBox>
Download mbox | patch
Permalink /patch/147397/
State Accepted
Delegated to: David Miller
Headers show

Comments

Ajit Khaparde - March 18, 2012, 4:23 p.m.
In flex10 mode the number of vlan slots supported is halved.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
---
 drivers/net/ethernet/emulex/benet/be_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
index b4348b8..1c84bc8 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;