app/testpmd: conserve offload flags of mbuf
authorYongseok Koh <yskoh@mellanox.com>
Fri, 27 Apr 2018 17:22:52 +0000 (10:22 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 18:11:33 +0000 (20:11 +0200)
commit23520b3a5c8d7538eb3f62993c8012573fcb289d
treec1bf8ecd3b37f05d11a5ebcbcf7a32de55d7a9f1
parenta53aa2b9f3bedec2019c95e17513064da479a8e3
app/testpmd: conserve offload flags of mbuf

This patch is to accommodate an experimental feature of mbuf - external
buffer attachment. If mbuf is attached to an external buffer, its ol_flags
will have EXT_ATTACHED_MBUF set. Without enabling/using the feature,
everything remains same.

If PMD delivers Rx packets with non-direct mbuf, ol_flags should not be
overwritten. For mlx5 PMD, if Multi-Packet RQ is enabled, Rx packets could
be carried with externally attached mbufs.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
app/test-pmd/csumonly.c
app/test-pmd/macfwd.c
app/test-pmd/macswap.c