be2net: fix initialization of vlan_prio_bmap
authorSathya Perla <sathya.perla@emulex.com>
Sun, 26 Jun 2011 20:41:53 +0000 (20:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jun 2011 07:09:31 +0000 (00:09 -0700)
Initialization of this field to "all priorities" must be done before MCC queue
creation. As soon as the MCC queue is created, an event modifying this value
may be received.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c

index 2373d394fa71d1a03528cde2ad852d992a7f03c5..ae281de94b99e4d1cc24863f2e028af54de43421 100644 (file)
@@ -2554,6 +2554,9 @@ static int be_setup(struct be_adapter *adapter)
        if (status != 0)
                goto tx_qs_destroy;
 
+       /* Allow all priorities by default. A GRP5 evt may modify this */
+       adapter->vlan_prio_bmap = 0xff;
+
        status = be_mcc_queues_create(adapter);
        if (status != 0)
                goto rx_qs_destroy;
@@ -3419,10 +3422,6 @@ static int __devinit be_probe(struct pci_dev *pdev,
        }
 
        dev_info(&pdev->dev, "%s port %d\n", nic_name(pdev), adapter->port_num);
-       /* By default all priorities are enabled.
-        * Needed in case of no GRP5 evt support
-        */
-       adapter->vlan_prio_bmap = 0xff;
 
        schedule_delayed_work(&adapter->work, msecs_to_jiffies(100));
        return 0;
This page took 0.029267 seconds and 5 git commands to generate.