]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
be2net: Fix number of vlan slots in flex mode
authorAjit Khaparde <ajit.khaparde@emulex.com>
Sun, 18 Mar 2012 06:23:31 +0000 (06:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Mar 2012 20:52:17 +0000 (16:52 -0400)
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>
drivers/net/ethernet/emulex/benet/be_main.c

index b4348b8ee5299751681632353fa4c1c842782d79..1c84bc81b8f1073280be4a9a981b0e5d09ce1104 100644 (file)
@@ -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;