mbox series

[v6,0/5] mbuf: copy/cloning enhancements

Message ID 20191008163350.20779-1-stephen@networkplumber.org (mailing list archive)
Headers
Series mbuf: copy/cloning enhancements |

Message

Stephen Hemminger Oct. 8, 2019, 4:33 p.m. UTC
  This patch set is all about improving the mbuf related cloning
and copying. They are motivated by seeing issues with mbuf copying
in rte_pdump and realized this a wider and more general problem.
The pdump copy could not handle different size pools and did
not handle meta data, etc.

They cause no functional or ABI changes. The only visible part
to older code is converting a couple of inlines to real functions.
This kind of change confuses checkpatch which thinks these new
functions should be marked experimental when they must not be.

v6 - incorporate feedback from Oliver for pktmbuf_copy
     add more comments and tests for pktmbuf_copy

v5 - add back the test (dropped by accident in v4)
v4 - common mbuf header fields copy routine
v3 - split linearize into internal/external
     copy private data in pktmbuf_copy
v2 - add pdump use of pktmbuf_copy
     fix version in map

Stephen Hemminger (5):
  mbuf: don't generate invalid mbuf in clone test
  mbuf: delinline rte_pktmbuf_linearize
  mbuf: deinline rte_pktmbuf_clone
  mbuf: add a pktmbuf copy routine
  mbuf: add pktmbuf copy test

 app/test/test_mbuf.c                 | 160 +++++++++++++++++++++++++++
 lib/librte_mbuf/rte_mbuf.c           | 153 +++++++++++++++++++++++++
 lib/librte_mbuf/rte_mbuf.h           | 129 +++++++++------------
 lib/librte_mbuf/rte_mbuf_version.map |   8 ++
 4 files changed, 372 insertions(+), 78 deletions(-)