diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2017-06-15 14:35:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-16 05:53:23 +0300 |
commit | f28186d6b55d4c0b315d025753c22927e836a0e2 (patch) | |
tree | 22940a9197e91e80868d346da23ae26a2ccc439f /drivers/connector/Makefile | |
parent | cc26a4908682698cafdb5bb917f19840aff1a149 (diff) | |
download | linux-f28186d6b55d4c0b315d025753c22927e836a0e2.tar.xz |
net/mlx4_en: Improve stack xmit function
Several small code and performance improvements in stack TX datapath,
including:
- Compiler branch predictor hints.
- Minimize variables scope.
- Move tx_info non-inline flow handling to a separate function.
- Calculate data_offset in compile time rather than in runtime
(for !lso_header_size branch).
- Avoid trinary-operator ("?") when value can be preset in a matching
branch.
Performance tests:
Tested on ConnectX3Pro, Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
Gain is too small to be measurable, no degradation sensed.
Results are similar for IPv4 and IPv6.
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>
Diffstat (limited to 'drivers/connector/Makefile')
0 files changed, 0 insertions, 0 deletions