be2net: Fix broken priority setting when vlan tagging is enabled.
authorAjit Khaparde <ajit.khaparde@emulex.com>
Fri, 11 Feb 2011 13:37:25 +0000 (13:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Feb 2011 05:14:47 +0000 (21:14 -0800)
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_cmds.c

index 277982b..8fa9a70 100644 (file)
@@ -102,6 +102,7 @@ static void be_async_grp5_cos_priority_process(struct be_adapter *adapter,
 {
        if (evt->valid) {
                adapter->vlan_prio_bmap = evt->available_priority_bmap;
+               adapter->recommended_prio &= ~VLAN_PRIO_MASK;
                adapter->recommended_prio =
                        evt->reco_default_priority << VLAN_PRIO_SHIFT;
        }