numam-dpdk/lib/librte_mbuf
Ivan Malov b51690ec69 mbuf: clarify outer offsets for non-tunnel packets
The default policy for offload-specific fields is that
they are undefined unless the corresponding offloads are
requested in mbuf ol_flags. This is also the case for outer
L2 and L3 length fields which must not be assumed to contain
zeros for non-tunnel packets. The patch clarifies this behaviour
in the comments and also adds appropriate checks to the PMDs which
do not check any tunnel-related offloads before using the said fields.

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2019-07-01 17:15:01 +02:00
..
Makefile mbuf: add a non fatal sanity check helper 2019-01-15 02:40:40 +01:00
meson.build mbuf: add a non fatal sanity check helper 2019-01-15 02:40:40 +01:00
rte_mbuf_pool_ops.c mbuf: remove experimental tag from pool ops 2018-07-26 23:37:08 +02:00
rte_mbuf_pool_ops.h mbuf: remove experimental tag from pool ops 2018-07-26 23:37:08 +02:00
rte_mbuf_ptype.c mbuf: add IGMP packet type 2018-10-25 15:51:16 +02:00
rte_mbuf_ptype.h doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
rte_mbuf_version.map mbuf: add a non fatal sanity check helper 2019-01-15 02:40:40 +01:00
rte_mbuf.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
rte_mbuf.h mbuf: clarify outer offsets for non-tunnel packets 2019-07-01 17:15:01 +02:00