eth: mlx4: use the page pool for Rx buffers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 4 repliesIn review 1 of 4 applied
- v24 patches 0 repliesSuperseded
- v14 patches 18 repliesSuperseded
Changes in v3 from the cover letter
- use priv->rx_skb_size for buffer size calculation
- use priv->dma_dir for DMA mapping direction, instead of always BIDIR
v2: https://lore.kernel.org/[email protected]
- remove unnecessary .max_size (Nit by Ido.)
- change pool size
- fix xdp xmit support description.
v1: https://lore.kernel.org/[email protected]
Patches in v3 1 of 4 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | eth: mlx4: create a page pool for Rxdrivers/ drivers/ | +25 | 1 reply | |
| 2/4 | eth: mlx4: don't try to complete XDP frames in netpolldrivers/ | +2 | 1 reply | Applied |
| 3/4 | eth: mlx4: remove the local XDP fast-recycling ringdrivers/ drivers/ drivers/ | +2 | 1 reply | |
| 4/4 | eth: mlx4: use the page pool for Rx buffersdrivers/ drivers/ drivers/ | +25 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Tariq Toukan |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v3 0/4] eth: mlx4: use the page pool for Rx buffers
Convert mlx4 to page pool. I've been sitting on these patches for over a year, and Jonathan Lemon had a similar series years before. We never deployed it or sent upstream because it didn't really show much perf win under normal load (admittedly I think the real testing was done before Ilias's work on recycling).
During the v6.9 kernel rollout Meta's CDN team noticed that machines with CX3 Pro (mlx4) are prone to overloads (double digit % of CPU time spent mapping buffers in the IOMMU). The problem does not occur with modern NICs, so I dusted off this series and reportedly it still works. And it makes the problem go away, no overloads, perf back in line with older kernels. Something must have changed in IOMMU code, I guess.
This series is very simple, and can very likely be optimized further. Thing is, I don't have access to any CX3 Pro NICs. They only exist in CDN locations which haven't had a HW refresh for a while. So I can say this series survives a week under traffic w/ XDP enabled, but my ability to iterate and improve is a bit limited.
v3:
- use priv->rx_skb_size for buffer size calculation
- use priv->dma_dir for DMA mapping direction, instead of always BIDIR
v2: https://lore.kernel.org/[email protected]
- remove unnecessary .max_size (Nit by Ido.)
- change pool size
- fix xdp xmit support description.
v1: https://lore.kernel.org/[email protected]
Jakub Kicinski (4):
eth: mlx4: create a page pool for Rx
eth: mlx4: don't try to complete XDP frames in netpoll
eth: mlx4: remove the local XDP fast-recycling ring
eth: mlx4: use the page pool for Rx buffers
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 15 +-- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 119 +++++++------------ drivers/net/ethernet/mellanox/mlx4/en_tx.c | 17 ++- 3 files changed, 52 insertions(+), 99 deletions(-)
Signature · 1 line
2.48.1