aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/dsa_loop.c
diff options
context:
space:
mode:
authorTariq Toukan <[email protected]>2017-06-15 11:35:39 +0000
committerDavid S. Miller <[email protected]>2017-06-16 02:53:23 +0000
commit9573e0d39ff8d7d1e0bcc10e23d18b9cbc4ca14e (patch)
tree8603ad2c32933bc751aa2dd322aa48cd4724fdea /drivers/net/dsa/dsa_loop.c
parentnet/mlx4_en: Increase default TX ring size (diff)
downloadkernel-9573e0d39ff8d7d1e0bcc10e23d18b9cbc4ca14e.tar.gz
kernel-9573e0d39ff8d7d1e0bcc10e23d18b9cbc4ca14e.zip
net/mlx4_en: Replace TXBB_SIZE multiplications with shift operations
Define LOG_TXBB_SIZE, log of TXBB_SIZE, and use it with a shift operation instead of a multiplication with TXBB_SIZE. Operations are equivalent as TXBB_SIZE is a power of two. 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