OSDN Git Service

net/mlx5e: TX, Improve performance under GSO workload
authorErez Alfasi <ereza@mellanox.com>
Tue, 14 May 2019 10:55:22 +0000 (13:55 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 31 May 2019 20:04:26 +0000 (13:04 -0700)
commitca6c7df00a89206f142365091c689059fc0b67bf
tree93e2c4525f358a39227254fedf9a9fdaed7053df
parent10caabdaad5ace85577a453da97d1f8d3b944427
net/mlx5e: TX, Improve performance under GSO workload

__netdev_tx_sent_queue() was introduced by:
commit 3e59020abf0f ("net: bql: add __netdev_tx_sent_queue()")

BQL counters should be updated without flipping/caring about
BQL status, if the current skb has xmit_more set.

Using __netdev_tx_sent_queue() avoids messing with BQL stop
flag, increases performance on GSO workload by keeping
doorbells to the minimum required and also sparing atomic
operations.

Signed-off-by: Erez Alfasi <ereza@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c