]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Improve transmit CQ polling
authorTariq Toukan <tariqt@mellanox.com>
Thu, 15 Jun 2017 11:35:34 +0000 (14:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jun 2017 02:53:23 +0000 (22:53 -0400)
commit9cfe0629c50909ff3ae6484f00ce50fa25890d57
tree5c5070735501da3d9e0dfaa334862f1fb53ae4eb
parent91a6d5fd4ccff72ffa8ae6c65da520e24f83ecef
net/mlx4_en: Improve transmit CQ polling

Several small performance improvements in TX CQ polling,
including:
- Compiler branch predictor hints.
- Minimize variables scope.
- More proper check of cq type.
- Use boolean instead of int for a binary indication.

Performance tests:
Tested on ConnectX3Pro, Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz

Packet-rate tests for both regular stack and XDP use cases:
No noticeable gain, no degradation.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Cc: kernel-team@fb.com
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c