]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 7 May 2012 21:44:23 +0000 (14:44 -0700)
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/benet/be_main.c

index 355662a37df186805bfe65b10c45938c1c48dc50..810d9731930dffd16ae100b8a03b201719923d9f 100644 (file)
@@ -3331,7 +3331,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;