diff options
| author | Tariq Toukan <[email protected]> | 2017-06-15 14:35:35 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-06-15 22:53:23 -0400 |
| commit | f28186d6b55d4c0b315d025753c22927e836a0e2 (patch) | |
| tree | 22940a9197e91e80868d346da23ae26a2ccc439f /tools/perf/scripts/python/stackcollapse.py | |
| parent | cc26a4908682698cafdb5bb917f19840aff1a149 (diff) | |
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 <[email protected]>
Reviewed-by: Saeed Mahameed <[email protected]>
Cc: [email protected]
Cc: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions