numam-dpdk/lib/librte_mbuf
Tomasz Kulasek 1feda4d8fc mbuf: add a function to linearize a packet
This patch adds function rte_pktmbuf_linearize to let crypto PMD coalesce
chained mbuf before crypto operation and extend their capabilities to
support segmented mbufs when device cannot handle them natively.

Included unit tests for rte_pktmbuf_linearize functionality:

 1) Creates banch of segmented mbufs with different size and number of
    segments.
 2) Fills noncontigouos mbuf with sequential values.
 3) Uses rte_pktmbuf_linearize to coalesce segmented buffer into one
    contiguous.
 4) Verifies data in linearized buffer.

Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2017-01-15 19:30:00 +01:00
..
Makefile mbuf: add functions to dump packet type 2016-10-11 18:22:36 +02:00
rte_mbuf_ptype.c mbuf: add functions to dump packet type 2016-10-11 18:22:36 +02:00
rte_mbuf_ptype.h mbuf: clarify definition of fragment packet types 2016-10-11 18:22:46 +02:00
rte_mbuf_version.map mbuf: add functions to dump offload flags 2016-10-12 18:08:40 +02:00
rte_mbuf.c mbuf: add MACsec flag 2017-01-15 19:15:51 +01:00
rte_mbuf.h mbuf: add a function to linearize a packet 2017-01-15 19:30:00 +01:00