diff options
| author | Tariq Toukan <[email protected]> | 2017-06-15 11:35:40 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-06-16 02:53:23 +0000 |
| commit | 4c07c132408a685d31bb6e638aef4d245e30703a (patch) | |
| tree | 6c8379e98405b231cf3e89fb732f938ba58d074e /drivers/net/dsa/dsa_loop.c | |
| parent | net/mlx4_en: Replace TXBB_SIZE multiplications with shift operations (diff) | |
| download | kernel-4c07c132408a685d31bb6e638aef4d245e30703a.tar.gz kernel-4c07c132408a685d31bb6e638aef4d245e30703a.zip | |
net/mlx4_en: Refactor mlx4_en_free_tx_desc
Some code re-ordering, functionally equivalent.
- The !tx_info->inl check is evaluated anyway in both flows
(common case/end case). Run it first, this might finish
the flows earlier.
- dma_unmap calls are identical in both flows, get it out
of the if block into the common area.
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
