]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32f12897fef2c15b9975c239d8b435a5e64bcf16
tree93e2c4525f358a39227254fedf9a9fdaed7053df
parent11a71d9177e89db650f8bcd84f7ae51b35ebc4c0
net/mlx5e: TX, Improve performance under GSO workload

__netdev_tx_sent_queue() was introduced by:
commit 90ab62df7aef ("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