aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/dsa_loop.c
diff options
context:
space:
mode:
authorTariq Toukan <[email protected]>2017-06-15 11:35:35 +0000
committerDavid S. Miller <[email protected]>2017-06-16 02:53:23 +0000
commitf28186d6b55d4c0b315d025753c22927e836a0e2 (patch)
tree22940a9197e91e80868d346da23ae26a2ccc439f /drivers/net/dsa/dsa_loop.c
parentnet/mlx4_en: Improve transmit CQ polling (diff)
downloadkernel-f28186d6b55d4c0b315d025753c22927e836a0e2.tar.gz
kernel-f28186d6b55d4c0b315d025753c22927e836a0e2.zip
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 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions