mbuf: add function to read packet data
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 3 Oct 2016 08:38:42 +0000 (10:38 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 11 Oct 2016 16:16:10 +0000 (18:16 +0200)
commitb84110e7baa2c133a4af090471e988e19fa5760b
treee1f907761a6fe7c09849e7d18a0d6c76420a493e
parent10313a4699ec8d627516f892a6131c53306e1bdc
mbuf: add function to read packet data

Introduce a new function to read the packet data from an mbuf chain. It
linearizes the data if required, and also ensures that the mbuf is large
enough.

This function is used in next commits that add a software parser to
retrieve the packet type.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
doc/guides/rel_notes/release_16_11.rst
lib/librte_mbuf/rte_mbuf.c
lib/librte_mbuf/rte_mbuf.h
lib/librte_mbuf/rte_mbuf_version.map