diff options
| author | Tariq Toukan <[email protected]> | 2017-06-15 11:35:36 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-06-16 02:53:23 +0000 |
| commit | 36ea7964982f54370e051386b74df914c53e2219 (patch) | |
| tree | b2a43f7e191c5b09128c78ecebbb221d54259fd8 /drivers/net/dsa/dsa_loop.c | |
| parent | net/mlx4_en: Improve stack xmit function (diff) | |
| download | kernel-36ea7964982f54370e051386b74df914c53e2219.tar.gz kernel-36ea7964982f54370e051386b74df914c53e2219.zip | |
net/mlx4_en: Improve XDP xmit function
Several performance improvements in XDP TX datapath,
including:
- Ring a single doorbell for XDP TX ring per NAPI budget,
instead of doing it per a lower threshold (was 8).
This includes removing the flow of immediate doorbell ringing
in case of a full TX ring.
- Compiler branch predictor hints.
- Calculate values in compile time rather than in runtime.
Performance tests:
Tested on ConnectX3Pro, Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
Single queue no-RSS optimization ON.
XDP_TX packet rate:
-------------------------------------
| Before | After | Gain |
IPv4 | 10.3 Mpps | 12.0 Mpps | 17% |
IPv6 | 10.3 Mpps | 12.0 Mpps | 17% |
-------------------------------------
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
