bnx2x: use XPS if possible for bnx2x_select_queue instead of pure hash
authorEric Dumazet <edumazet@google.com>
Fri, 31 May 2013 14:32:55 +0000 (14:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Jun 2013 02:38:32 +0000 (19:38 -0700)
The bnx2x_select_queue() was using __skb_tx_hash() to select the
transmit queue, totally ignoring XPS settings, while XPS can help
performance quite significantly, so change the bnx2x_select_queue()
to use __dev_pick_tx() instead which will use XPS if configured.

Based on patches from Ying Cai and Havard Skinnemoen

Reported-by: govindarajulu.v <govindarajulu90@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Havard Skinnemoen <hskinnemoen@google.com>
Cc: Ying Cai <ycai@google.com>
Cc: Eilon Greenstein <eilong@broadcom.com>
Acked-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found