]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: Don't bother using skb_tx_hash in mlx4_en_select_queue
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 27 Apr 2018 18:06:45 +0000 (14:06 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Apr 2018 02:01:32 +0000 (22:01 -0400)
commit62b9a9b40784dda1153a95dcc7f7c808db6e13ad
tree36ca0c4d4eec919ffe78101ec446ffff2dcce2d5
parent9ac6f29c2f7d197150a9f2584490a864d956578a
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>
drivers/net/ethernet/mellanox/mlx4/en_tx.c