ibmvnic: Use a set of LTBs per pool
Status from this message: This series was applied to netdev/net-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 6 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | ibmvnic: rename local variable index to bufidxdrivers/ | +22 | 0 replies | Applied |
| 2/6 | ibmvnic: define map_rxpool_buf_to_ltb()drivers/ | +24 | 0 replies | Applied |
| 3/6 | ibmvnic: define map_txpool_buf_to_ltb()drivers/ | +25 | 0 replies | Applied |
| 4/6 | ibmvnic: convert rxpool ltb to a set of ltbsdrivers/ drivers/ | +45 | 0 replies | Applied |
| 5/6 | ibmvnic: Allow multiple ltbs in rxpool ltb_setdrivers/ drivers/ | +177 | 0 replies | Applied |
| 6/6 | ibmvnic: Allow multiple ltbs in txpool ltb_setdrivers/ drivers/ | +35 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net-next 0/6] ibmvnic: Use a set of LTBs per pool
From: Sukadev Bhattiprolu <[email protected]>
ibmvnic uses a single large long term buffer (LTB) per rx or tx pool (queue). This has two limitations.
First, if we need to free/allocate an LTB (eg during a reset), under low memory conditions, the allocation can fail.
Second, the kernel limits the size of single LTB (DMA buffer) to 16MB (based on MAX_ORDER). With jumbo frames (mtu = 9000) we can only have about 1763 buffers per LTB (16MB / 9588 bytes per frame) even though the max supported buffers is 4096. (The 9588 instead of 9088 comes from IBMVNIC_BUFFER_HLEN.)
To overcome these limitations, allow creating a set of LTBs per queue.
Sukadev Bhattiprolu (6):
ibmvnic: rename local variable index to bufidx
ibmvnic: define map_rxpool_buf_to_ltb()
ibmvnic: define map_txpool_buf_to_ltb()
ibmvnic: convert rxpool ltb to a set of ltbs
ibmvnic: Allow multiple ltbs in rxpool ltb_set
ibmvnic: Allow multiple ltbs in txpool ltb_set
drivers/net/ethernet/ibm/ibmvnic.c | 310 ++++++++++++++++++++++++----- drivers/net/ethernet/ibm/ibmvnic.h | 54 ++++- 2 files changed, 308 insertions(+), 56 deletions(-)
Signature · 1 line
2.27.0