Reduce reliance on global response buffer in IAVF
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest8 patches 9 repliesIn review
Changes in v3 from the cover letter
- Reworked the virtchnl message handling to not rely on implicit behavior
- Split up into 8 patches for easy review
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | net/iavf: avoid passing around pointersdrivers/ drivers/ drivers/ | +20 | 1 reply | |
| 2/8 | net/iavf: add a variable for henadrivers/ | +3 | 1 reply | |
| 3/8 | net/iavf: add virtchnl interrupt enable flagdrivers/ drivers/ | +4 | 1 reply | |
| 4/8 | net/iavf: rework "async" virtchnl requestsdrivers/ drivers/ | +121 | 1 reply | |
| 5/8 | net/iavf: refactor sending virtchnl messagesdrivers/ | +70 | 1 reply | |
| 6/8 | net/iavf: respect output buffer in virtchnldrivers/ | +7 | 1 reply | |
| 7/8 | net/iavf: do not use global virtchnl bufferdrivers/ | +89 | 1 reply | |
| 8/8 | net/iavf: embed virtchnl response bufferdrivers/ drivers/ drivers/ | +1 | 1 reply |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Bruce Richardson |
|---|---|
| 1/8 | A-b |
| 2/8 | A-b |
| 3/8 | A-b |
| 4/8 | A-b |
| 5/8 | A-b |
| 6/8 | A-b |
| 7/8 | A-b |
| 8/8 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/8] Reduce reliance on global response buffer in IAVF
In many places where we are calling down into virtchnl, we are using a globally allocated adminq response buffer. This is unnecessary, so replace with adminq buffers allocated on stack. However, because IAVF virtchnl message queue works asynchronously in most cases, we can't remove the global buffer entirely, and we need to do some cleanup and refactoring to be able to reduce our usage of these buffers. This patchset does that.
v1 -> v2:
- Stats query was passing in a pointer-to-pointer and storing pointer to global adminq response buffer as output parameter, so changing that to a local buffer resulted in storing a pointer to a buffer that was stack allocated (i.e. introduced a use-after-free).
v2 -> v3:
- Reworked the virtchnl message handling to not rely on implicit behavior
- Split up into 8 patches for easy review
Anatoly Burakov (8):
net/iavf: avoid passing around pointers
net/iavf: add a variable for hena
net/iavf: add virtchnl interrupt enable flag
net/iavf: rework "async" virtchnl requests
net/iavf: refactor sending virtchnl messages
net/iavf: respect output buffer in virtchnl
net/iavf: do not use global virtchnl buffer
net/iavf: embed virtchnl response buffer
drivers/net/intel/iavf/iavf.h | 58 +--- drivers/net/intel/iavf/iavf_ethdev.c | 50 ++- drivers/net/intel/iavf/iavf_vchnl.c | 483 ++++++++++++++++----------- 3 files changed, 304 insertions(+), 287 deletions(-)
Signature · 1 line
2.47.3