netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "govindarajulu.v" <govindarajulu90@gmail.com>
To: amirv@mellanox.com, davem@davemloft.net, netdev@vger.kernel.org
Cc: eric.dumazet@gmail.com, "govindarajulu.v" <govindarajulu90@gmail.com>
Subject: [PATCH net-next] mlx4: use __netdev_pick_tx instead of __skb_tx_hash in mlx4_en_select_queue
Date: Mon,  3 Jun 2013 23:37:42 +0530	[thread overview]
Message-ID: <1370282862-13302-1-git-send-email-govindarajulu90@gmail.com> (raw)

From: "govindarajulu.v" <govindarajulu90@gmail.com>

mlx4_en_select_queue() uses __skb_tx_hash to select the transmit queue.
XPS settings are ignored by this. Instead, we can use __netdev_pick_tx
to select the transmit queue.

Compile test only.

Signed-off-by: govindarajulu.v <govindarajulu90@gmail.com>
---
 drivers/net/ethernet/mellanox/mlx4/en_tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/mellanox/mlx4/en_tx.c b/drivers/net/ethernet/mellanox/mlx4/en_tx.c
index 4e6877a..7c49238 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_tx.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_tx.c
@@ -544,7 +544,7 @@ u16 mlx4_en_select_queue(struct net_device *dev, struct sk_buff *skb)
 	if (vlan_tx_tag_present(skb))
 		up = vlan_tx_tag_get(skb) >> VLAN_PRIO_SHIFT;
 
-	return __skb_tx_hash(dev, skb, rings_p_up) + up * rings_p_up;
+	return __netdev_pick_tx(dev, skb) % rings_p_up + up * rings_p_up;
 }
 
 static void mlx4_bf_copy(void __iomem *dst, unsigned long *src, unsigned bytecnt)
-- 
1.8.2.3

             reply	other threads:[~2013-06-03 18:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-03 18:07 govindarajulu.v [this message]
     [not found] ` <51ADC6DE.7060004@mellanox.com>
2013-06-05  0:30   ` [PATCH net-next] mlx4: use __netdev_pick_tx instead of __skb_tx_hash in mlx4_en_select_queue David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1370282862-13302-1-git-send-email-govindarajulu90@gmail.com \
    --to=govindarajulu90@gmail.com \
    --cc=amirv@mellanox.com \
    --cc=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).