Skip to content

net: aquantia: RX performance optimization patches

Igor Russkikh netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7net: aquantia: optimize rx path using larger preallocated skb lendrivers/net/ethernet/aquantia/atlantic/aq_cfg.h drivers/net/ethernet/aquantia/atlantic/aq_ring.c+20 -90 replies
2/7net: aquantia: optimize rx performance by page reuse strategydrivers/net/ethernet/aquantia/atlantic/aq_cfg.h drivers/net/ethernet/aquantia/atlantic/aq_nic.c drivers/net/ethernet/aquantia/atlantic/aq_nic.h +5 more+152 -630 replies
3/7net: aquantia: Introduce rx refill threshold valuedrivers/net/ethernet/aquantia/atlantic/aq_cfg.h drivers/net/ethernet/aquantia/atlantic/aq_ring.c+6 -00 replies
4/7net: aquantia: Make RX default frame size 2Kdrivers/net/ethernet/aquantia/atlantic/aq_cfg.h+1 -10 replies
5/7net: aquantia: Increase rx ring default size from 1K to 2Kdrivers/net/ethernet/aquantia/atlantic/aq_cfg.h+1 -10 replies
6/7net: aquantia: improve LRO configurationdrivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0_internal.h drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.c +2 more+46 -20 replies
7/7net: aquantia: enable driver build for arm64 or compile_testdrivers/net/ethernet/aquantia/Kconfig+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/7] net: aquantia: RX performance optimization patches

Here is a set of patches targeting for performance improvement on various platforms and protocols.

Our main target was rx performance on iommu systems, notably NVIDIA Jetson TX2 and NVIDIA Xavier platforms.

We introduce page reuse strategy to better deal with iommu dma mapping costs. With it we see 80-90% of page reuse under some test configurations on UDP traffic.

This shows good improvements on other systems with IOMMU hardware, like AMD Ryzen.

We've also improved TCP LRO configuration parameters, allowing packets to better coalesce.

Page reuse tests were carried out using iperf3, iperf2, netperf and pktgen. Mainly on UDP traffic, with various packet lengths.

Jetson TX2, UDP, Default MTU:
RX Lost Datagrams
Before: Max: 69% Min: 68% Avg: 68.5%
After: Max: 41% Min: 38% Avg: 39.2%
Maximum throughput
Before: 1.27 Gbits/sec
After: 2.41 Gbits/sec

AMD Ryzen 5 2400G, UDP, Default MTU:
RX Lost Datagrams
Before: Max: 12% Min: 4.5% Avg: 7.17%
After: Max: 6.2% Min: 2.3% Avg: 4.26%

Igor Russkikh (6):
net: aquantia: optimize rx path using larger preallocated skb len
net: aquantia: optimize rx performance by page reuse strategy
net: aquantia: Introduce rx refill threshold value
net: aquantia: Make RX default frame size 2K
net: aquantia: Increase rx ring default size from 1K to 2K
net: aquantia: enable driver build for arm64 or compile_test

Nikita Danilov (1):
net: aquantia: improve LRO configuration

 drivers/net/ethernet/aquantia/Kconfig         |   3 +-
 .../net/ethernet/aquantia/atlantic/aq_cfg.h   |  10 +-
 .../net/ethernet/aquantia/atlantic/aq_nic.c   |   1 +
 .../net/ethernet/aquantia/atlantic/aq_nic.h   |   1 +
 .../net/ethernet/aquantia/atlantic/aq_ring.c  | 187 +++++++++++++-----
 .../net/ethernet/aquantia/atlantic/aq_ring.h  |  34 +++-
 .../net/ethernet/aquantia/atlantic/aq_vec.c   |   3 +
 .../aquantia/atlantic/hw_atl/hw_atl_a0.c      |   4 -
 .../aquantia/atlantic/hw_atl/hw_atl_b0.c      |  16 +-
 .../atlantic/hw_atl/hw_atl_b0_internal.h      |   2 +-
 .../aquantia/atlantic/hw_atl/hw_atl_llh.c     |  15 ++
 .../aquantia/atlantic/hw_atl/hw_atl_llh.h     |   6 +
 .../atlantic/hw_atl/hw_atl_llh_internal.h     |  13 ++
 13 files changed, 223 insertions(+), 72 deletions(-)
Signature · 1 line
2.17.1