b51690ec69
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> |
||
---|---|---|
.. | ||
Makefile | ||
meson.build | ||
rte_mbuf_pool_ops.c | ||
rte_mbuf_pool_ops.h | ||
rte_mbuf_ptype.c | ||
rte_mbuf_ptype.h | ||
rte_mbuf_version.map | ||
rte_mbuf.c | ||
rte_mbuf.h |