summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/en_tx.c
diff options
context:
space:
mode:
authorAlexander Duyck2018-04-27 20:06:45 +0200
committerDavid S. Miller2018-04-30 04:01:32 +0200
commitb86629ebd5447c1e263d89be765ba6fd747c5e4d (patch)
tree36ca0c4d4eec919ffe78101ec446ffff2dcce2d5 /drivers/net/ethernet/mellanox/mlx4/en_tx.c
parentopa_vnic: Just use skb_get_hash instead of skb_tx_hash (diff)
downloadkernel-qcow2-linux-b86629ebd5447c1e263d89be765ba6fd747c5e4d.tar.gz
kernel-qcow2-linux-b86629ebd5447c1e263d89be765ba6fd747c5e4d.tar.xz
kernel-qcow2-linux-b86629ebd5447c1e263d89be765ba6fd747c5e4d.zip
mlx4: Don't bother using skb_tx_hash in mlx4_en_select_queue
The code in the fallback path has supported XDP in conjunction with the Tx traffic classification for TCs for over a year now. So instead of just calling skb_tx_hash for every packet we are better off using the fallback since that will record the Tx queue to the socket and then that can be used instead of having to recompute the hash every time. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_tx.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_tx.c b/drivers/net/ethernet/mellanox/mlx4/en_tx.c
index 6b6853773848..0227786308af 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_tx.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_tx.c
@@ -694,7 +694,7 @@ u16 mlx4_en_select_queue(struct net_device *dev, struct sk_buff *skb,
u16 rings_p_up = priv->num_tx_rings_p_up;
if (netdev_get_num_tc(dev))
- return skb_tx_hash(dev, skb);
+ return fallback(dev, skb);
return fallback(dev, skb) % rings_p_up;
}