ibmvnic: Reuse ltb, rx, tx pools
Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest posting 2/29 patches 0 repliesApplied 9/9
- v2 posting 1/29 patches 1 replySuperseded
- v19 patches 12 repliesSuperseded
Patches in v2 posting 2/2 All 9 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | ibmvnic: Consolidate code in replenish_rx_pool()drivers/ | +7 | 0 replies | Applied |
| 2/9 | ibmvnic: Fix up some comments and messagesdrivers/ | +38 | 0 replies | Applied |
| 3/9 | ibmvnic: Use/rename local vars in init_rx_poolsdrivers/ drivers/ | +10 | 0 replies | Applied |
| 4/9 | ibmvnic: Use/rename local vars in init_tx_poolsdrivers/ | +16 | 0 replies | Applied |
| 5/9 | ibmvnic: init_tx_pools move loop-invariant codedrivers/ | +2 | 0 replies | Applied |
| 6/9 | ibmvnic: Use bitmap for LTB map_idsdrivers/ drivers/ | +10 | 0 replies | Applied |
| 7/9 | ibmvnic: Reuse LTB when possibledrivers/ | +74 | 0 replies | Applied |
| 8/9 | ibmvnic: Reuse rx pools when possibledrivers/ drivers/ | +137 | 0 replies | Applied |
| 9/9 | ibmvnic: Reuse tx pools when possibledrivers/ drivers/ | +147 | 0 replies | Applied |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by.
| Patch | Rick Lindsley | Dany Madden |
|---|---|---|
| 1/9 | R-b | R-b |
| 2/9 | R-b | R-b |
| 3/9 | R-b | R-b |
| 4/9 | R-b | R-b |
| 5/9 | R-b | R-b |
| 6/9 | R-b | R-b |
| 7/9 | R-b | R-b |
| 8/9 | R-b | R-b |
| 9/9 | R-b | 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 RESEND v2 0/9] ibmvnic: Reuse ltb, rx, tx pools
It can take a long time to free and reallocate rx and tx pools and long term buffer (LTB) during each reset of the VNIC. This is specially true when the partition (LPAR) is heavily loaded and going through a Logical Partition Migration (LPM). The long drawn reset causes the LPAR to lose connectivity for extended periods of time and results in "RMC connection" errors and the LPM failing.
What is worse is that during the LPM we could get a failover because of the lost connectivity. At that point, the vnic driver releases even the resources it has already allocated and starts over.
As long as the resources we have already allocated are valid/applicable, we might as well hold on to them while trying to allocate the remaining resources. This patch set attempts to reuse the resources previously allocated as long as they are valid. It seems to vastly improve the time taken for the vnic reset and signficantly reduces the chances of getting the RMC connection errors. We do get still them occasionally, but appears to be for reasons other than memory allocation delays and those are still being investigated.
If the backing devices for a vnic adapter are not "matched" (see "pool parameters" in patches 8 and 9) it is possible that we will still free all the resources and allocate them. If that becomes a common problem, we have to address it separately.
Thanks to input and extensive testing from Brian King, Cris Forno, Dany Madden, Rick Lindsley.
Changelog[v2]
[Jakub Kicinski] Fix kdoc issues
Sukadev Bhattiprolu (9):
ibmvnic: consolidate related code in replenish_rx_pool()
ibmvnic: Fix up some comments and messages
ibmvnic: Use/rename local vars in init_rx_pools
ibmvnic: Use/rename local vars in init_tx_pools
ibmvnic: init_tx_pools move loop-invariant code out
ibmvnic: use bitmap for LTB map_ids
ibmvnic: Reuse LTB when possible
ibmvnic: Reuse rx pools when possible
ibmvnic: Reuse tx pools when possible
drivers/net/ethernet/ibm/ibmvnic.c | 640 +++++++++++++++++++---------- drivers/net/ethernet/ibm/ibmvnic.h | 10 +- 2 files changed, 427 insertions(+), 223 deletions(-)
Signature · 1 line
2.26.2