mlx4: order-0 allocations and page recycling
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest13 patches 18 repliesIn review
- v314 patches 56 repliesSuperseded
- v214 patches 14 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 9 patches | 16 replies | Superseded |
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | mlx4: dma_dir is a mlx4_en_priv attributedrivers/ drivers/ drivers/ | +12 | 1 reply | |
| 2/13 | mlx4: remove order field from mlx4_en_frag_infodrivers/ drivers/ | +4 | 1 reply | |
| 3/13 | mlx4: get rid of frag_prefix_sizedrivers/ drivers/ | +13 | 1 reply | |
| 4/13 | mlx4: rx_headroom is a per port attributedrivers/ drivers/ | +4 | 1 reply | |
| 5/13 | mlx4: reduce rx ring page_cache sizedrivers/ drivers/ drivers/ | +15 | 1 reply | |
| 6/13 | mlx4: removal of frag_sizes[]drivers/ drivers/ | +10 | 1 reply | |
| 7/13 | mlx4: use order-0 pages for RXdrivers/ drivers/ | +33 | 1 reply | |
| 8/13 | mlx4: add page recycling in receive pathdrivers/ drivers/ | +82 | 1 reply | |
| 9/13 | mlx4: add rx_alloc_pages counter in ethtool -Sdrivers/ drivers/ drivers/ +2 more | +12 | 1 reply | |
| 10/13 | mlx4: do not access rx_desc from mlx4_en_process_rx_cq()drivers/ | +3 | 1 reply | |
| 11/13 | mlx4: factorize page_address() callsdrivers/ | +7 | 1 reply | |
| 12/13 | mlx4: make validate_loopback() more genericdrivers/ drivers/ | +10 | 1 reply | |
| 13/13 | mlx4: remove duplicate code in mlx4_en_process_rx_cq()drivers/ | +41 | 1 reply |
Reviews trailers per patch
All 13 patches have a Reviewed-by or Acked-by.
| Patch | Tariq Toukan |
|---|---|
| 1/13 | A-b |
| 2/13 | A-b |
| 3/13 | A-b |
| 4/13 | A-b |
| 5/13 | A-b |
| 6/13 | A-b |
| 7/13 | A-b |
| 8/13 | A-b |
| 9/13 | A-b |
| 10/13 | A-b |
| 11/13 | A-b |
| 12/13 | A-b |
| 13/13 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 net-next 00/13] mlx4: order-0 allocations and page recycling
As mentioned half a year ago, we better switch mlx4 driver to order-0 allocations and page recycling.
This reduces vulnerability surface thanks to better skb->truesize tracking and provides better performance in most cases. (33 Gbit for one TCP flow on my lab hosts)
I will provide for linux-4.13 a patch on top of this series, trying to improve data locality as described in
https://www.spinics.net/lists/netdev/msg422258.html
v2 provides an ethtool -S new counter (rx_alloc_pages) and code factorization, plus Tariq fix.
v3 includes various fixes based on Tariq tests and feedback from Saeed and Tariq.
v4 rebased on net-next for inclusion in linux-4.12, as requested by Tariq.
Worth noting this patch series deletes ~250 lines of code ;)
Eric Dumazet (13):
mlx4: dma_dir is a mlx4_en_priv attribute
mlx4: remove order field from mlx4_en_frag_info
mlx4: get rid of frag_prefix_size
mlx4: rx_headroom is a per port attribute
mlx4: reduce rx ring page_cache size
mlx4: removal of frag_sizes[]
mlx4: use order-0 pages for RX
mlx4: add page recycling in receive path
mlx4: add rx_alloc_pages counter in ethtool -S
mlx4: do not access rx_desc from mlx4_en_process_rx_cq()
mlx4: factorize page_address() calls
mlx4: make validate_loopback() more generic
mlx4: remove duplicate code in mlx4_en_process_rx_cq()
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 2 +- drivers/net/ethernet/mellanox/mlx4/en_port.c | 2 + drivers/net/ethernet/mellanox/mlx4/en_rx.c | 607 +++++++---------------- drivers/net/ethernet/mellanox/mlx4/en_selftest.c | 6 - drivers/net/ethernet/mellanox/mlx4/en_tx.c | 4 +- drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 30 +- drivers/net/ethernet/mellanox/mlx4/mlx4_stats.h | 2 +- 7 files changed, 201 insertions(+), 452 deletions(-)
Signature · 1 line
2.12.0.246.ga2ecc84866-goog