Jelajahi Sumber

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>
Ajit Khaparde 13 tahun lalu
induk
melakukan
456d9c962b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      drivers/net/ethernet/emulex/benet/be_main.c

+ 1 - 1
drivers/net/ethernet/emulex/benet/be_main.c

@@ -3292,7 +3292,7 @@ static int be_get_config(struct be_adapter *adapter)
 		return status;
 		return status;
 
 
 	if (adapter->function_mode & FLEX10_MODE)
 	if (adapter->function_mode & FLEX10_MODE)
-		adapter->max_vlans = BE_NUM_VLANS_SUPPORTED/4;
+		adapter->max_vlans = BE_NUM_VLANS_SUPPORTED/8;
 	else
 	else
 		adapter->max_vlans = BE_NUM_VLANS_SUPPORTED;
 		adapter->max_vlans = BE_NUM_VLANS_SUPPORTED;