]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx4_en: XDP_TX, assign constant values of TX descs on ring creaion
authorTariq Toukan <tariqt@mellanox.com>
Wed, 11 Oct 2017 10:17:27 +0000 (13:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Oct 2017 03:21:23 +0000 (20:21 -0700)
commitf025fd6061e120713d6c11c92983804c6805d6cb
tree236c45bb63db2c27a70309cf4bb90cf3e2510555
parentf6f0aa97413a420606aabe8142f8a5c0f15b9246
net/mlx4_en: XDP_TX, assign constant values of TX descs on ring creaion

In XDP_TX, some fields in tx_info and tx_desc are constants across
all entries of the different XDP_TX rings.
Assign values to these fields on ring creation time, rather than in
data-path.

Patchset performance tests:
Tested on ConnectX3Pro, Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
Single queue no-RSS optimization ON.

XDP_TX packet rate:
------------------------------
Before    | After     | Gain |
13.7 Mpps | 14.0 Mpps | %2.2 |
------------------------------

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/en_tx.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h