Skip to content

provide thread unsafe async registration functions

Jiayu Hu dpdk-dev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 4 repliesIn review
  2. v53 patches 3 repliesSuperseded
  3. v43 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v33 patches0 repliesSuperseded
v23 patches1 replySuperseded
v12 patches13 repliesSuperseded

Changes in v6 from the cover letter

* remove RTE_VHOST_ASYNC_FEATURE_UNKNOWN
* add blank lines in doc

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vhost: fix lock on device readiness notificationlib/vhost/vhost_user.c+2 -30 replies
2/3vhost: rework async configuration structuredoc/guides/prog_guide/vhost_lib.rst examples/vhost/main.c lib/vhost/rte_vhost_async.h +2 more+46 -492 replies
3/3vhost: add thread unsafe async registeration functionsdoc/guides/prog_guide/vhost_lib.rst lib/vhost/rte_vhost_async.h lib/vhost/version.map +1 more+175 -351 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMaxime CoquelinChenbo Xia
1/3R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [dpdk-dev] [PATCH v6 0/3] provide thread unsafe async registration functions

Lock protection is needed during the vhost notifies the application of device readiness, so the first patch adds lock protection. In addition, the second patch reworks async feature structure to improve readability. After performing locking, existed async vhost registration functions will cause deadlock, as they acquire lock too. The last patch provides thread unsafe registration functions to support calling within vhost callback functions.

v6:
* remove RTE_VHOST_ASYNC_FEATURE_UNKNOWN
* add blank lines in doc
v5:
* improve coding style
* update commit log, doc and comments
* remove useless field async_inorder
* change async_threshold from uint16_t to uint32_t v4:
* remove brace {} in single statement block v3:
* rename and use enum to define async device features
* change padding fields to 8 bytes
v2:
* rework async feature structure
* fix typo in commit log

Jiayu Hu (3):
vhost: fix lock on device readiness notification
vhost: rework async configuration structure
vhost: add thread unsafe async registeration functions

 doc/guides/prog_guide/vhost_lib.rst |  37 ++++++--
 examples/vhost/main.c               |   8 +-
 lib/vhost/rte_vhost_async.h         |  85 ++++++++++++++-----
 lib/vhost/version.map               |   4 +
 lib/vhost/vhost.c                   | 162 ++++++++++++++++++++++++++----------
 lib/vhost/vhost.h                   |   3 +-
 lib/vhost/vhost_user.c              |   5 +-
 7 files changed, 220 insertions(+), 84 deletions(-)
Signature · 1 line
2.7.4