ixgbe: move TC_PRIO_CONTROL check into ixgbe_select_queue()
authorJohn Fastabend <john.r.fastabend@intel.com>
Sat, 27 Feb 2010 11:28:24 +0000 (03:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Feb 2010 11:28:24 +0000 (03:28 -0800)
commit2ea186ae533c7b4f4c56811b69d3e40a6209a9c0
treec3d17233ec49eda1f49c4bcfc236e28f954f07fe
parentda3f5cf1f8ebb0fab5c5fd09adb189166594ad6c
ixgbe: move TC_PRIO_CONTROL check into ixgbe_select_queue()

Move TC_PRIO_CONTROL check and queue remapping into
ixgbe_select_queue().  Remapping queues after the qdisc
can result in the wrong qdisc queue being stopped with
netif_stop_subqueue().  Even if this is resolved and the
correct queue is stopped it can result in a queue being
blocked by TC_PRIO_CONTROL frames uneccesarily.  Moving
this into the select_queue routine maintains alignment
between tx_rings and qdisc queues.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c