Enhance rawdev APIs
Status from this message: Applied, thanks
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest7 patches 1 replyApplied
- v27 patches 4 repliesSuperseded
- v15 patches 3 repliesSuperseded
Changes in v3 from the cover letter
- fix doxygen error
- add release note update for changes to public APIs
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | rawdev: add private data length parameter to info fnapp/ doc/ doc/ +13 more | +56 | 0 replies | |
| 2/7 | rawdev: allow drivers to return error from info functiondoc/ drivers/ drivers/ +4 more | +32 | 0 replies | |
| 3/7 | rawdev: add private data length parameter to config fndoc/ doc/ doc/ +17 more | +50 | 0 replies | |
| 4/7 | rawdev: add private data length parameter to queue fnsdoc/ drivers/ drivers/ +5 more | +54 | 0 replies | |
| 5/7 | rawdev: allow queue config query to return errordoc/ drivers/ drivers/ +2 more | +16 | 0 replies | |
| 6/7 | rawdev: mark start and stop functions optionallib/ | +11 | 0 replies | |
| 7/7 | doc: remove rawdev deprecation noticedoc/ | +0 | 0 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Rosen Xu | Nipun Gupta |
|---|---|---|
| 1/7 | R-b A-b | A-b |
| 2/7 | R-b | A-b |
| 3/7 | R-b | A-b |
| 4/7 | A-b | |
| 5/7 | A-b | |
| 6/7 | A-b | |
| 7/7 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [dpdk-dev] [PATCH v3 0/7] Enhance rawdev APIs
This patchset proposes some internal and externally-visible changes to the rawdev API, the ABI change of which were previously announced.
The changes are in two main areas:
* For any APIs which take a void * parameter for driver-specific structs, add an additional parameter to provide the struct length. This allows some runtime type-checking, as well as possible ABI-compatibility support in the future as structure change generally involve a change in the size of the structure.
* Ensure all APIs which can return error values have int type, rather than void. Since functions like info_get and queue_default_get can now do some typechecking, they need to be modified to allow them to return error codes on failure.
V3:
- fix doxygen error
- add release note update for changes to public APIs
V2:
- add additional patch to make start/stop functions optional
- remove deprecation notice once changes applied
Bruce Richardson (7):
rawdev: add private data length parameter to info fn
rawdev: allow drivers to return error from info function
rawdev: add private data length parameter to config fn
rawdev: add private data length parameter to queue fns
rawdev: allow queue config query to return error
rawdev: mark start and stop functions optional
doc: remove rawdev deprecation notice
app/test/test_rawdev.c | 2 +- doc/guides/rawdevs/ioat.rst | 4 +- doc/guides/rawdevs/octeontx2_dma.rst | 2 +- doc/guides/rawdevs/octeontx2_ep.rst | 3 +- doc/guides/rel_notes/deprecation.rst | 7 --- doc/guides/rel_notes/release_20_11.rst | 9 ++++ doc/guides/sample_app_ug/ioat.rst | 4 +- drivers/bus/ifpga/ifpga_bus.c | 2 +- drivers/raw/ifpga/ifpga_rawdev.c | 23 +++++----- drivers/raw/ioat/ioat_rawdev.c | 17 ++++--- drivers/raw/ioat/ioat_rawdev_test.c | 6 +-- drivers/raw/ntb/ntb.c | 49 ++++++++++++++++----- drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 7 +-- drivers/raw/octeontx2_dma/otx2_dpi_test.c | 3 +- drivers/raw/octeontx2_ep/otx2_ep_rawdev.c | 7 +-- drivers/raw/octeontx2_ep/otx2_ep_test.c | 2 +- drivers/raw/skeleton/skeleton_rawdev.c | 36 +++++++++------ drivers/raw/skeleton/skeleton_rawdev_test.c | 32 ++++++++------ examples/ioat/ioatfwd.c | 4 +- examples/ntb/ntb_fwd.c | 7 +-- lib/librte_rawdev/rte_rawdev.c | 47 +++++++++++++------- lib/librte_rawdev/rte_rawdev.h | 27 ++++++++++-- lib/librte_rawdev/rte_rawdev_pmd.h | 22 ++++++--- 23 files changed, 210 insertions(+), 112 deletions(-)
Signature · 1 line
2.25.1