Skip to content

mbuf: Add new private data area accessor function.

Dan Gora dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesIn review
  2. v14 patches 6 repliesSuperseded

Changes in v2 from the cover letter

* Change 'md' to 'm' in rte_mbuf_to_priv().
* Remove check of m->priv_len in rte_mbuf_to_priv() to avoid confusion if used with indirect mbufs.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mbuf: add accessor function for private data arealib/librte_mbuf/rte_mbuf.h+18 -03 replies
2/4examples/ipsec-secgw: use rte fcn to access private areaexamples/ipsec-secgw/ipsec.h+1 -11 reply
3/4examples/ipsec-secgw: use ipsec fcn to access private areaexamples/ipsec-secgw/sa.c+1 -10 replies
4/4vhost/crypto: use rte fcn to access private arealib/librte_vhost/vhost_crypto.c+2 -40 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchAndrew RybchenkoOlivier Matz
1/4R-b A-b
2/4
3/4
4/4

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

Read the v2 thread

Cover letter [PATCH v2 0/4] mbuf: Add new private data area accessor function.

Hi All,

Below is a series of patches to add a new API function to allow DPDK applications to access the private data area of the mbuf, if one exists.

This eliminates the repeated code in applications to access the private data area and makes the API a bit more complete, since there are already accessor functions to access the start of the buffer, the start of data, etc.

The first patch [1 of 4] adds the accessor function to rte_mbuf.h.

The other three patches clean up other code to use this new function.

Please let me know what you think.

thanks
dan

v2:
* Change 'md' to 'm' in rte_mbuf_to_priv().
* Remove check of m->priv_len in rte_mbuf_to_priv() to avoid confusion if used with indirect mbufs.

Dan Gora (4):
mbuf: add accessor function for private data area examples/ipsec-secgw: use rte fcn to access private area examples/ipsec-secgw: use ipsec fcn to access private area vhost/crypto: use rte fcn to access private area

 examples/ipsec-secgw/ipsec.h    |  2 +-
 examples/ipsec-secgw/sa.c       |  2 +-
 lib/librte_mbuf/rte_mbuf.h      | 18 ++++++++++++++++++
 lib/librte_vhost/vhost_crypto.c |  6 ++----
 4 files changed, 22 insertions(+), 6 deletions(-)
Signature · 1 line
2.18.0.rc1.1.g6f333ff2f