app/testpmd: set and clear keep CRC offload flag
authorBernard Iremonger <bernard.iremonger@intel.com>
Wed, 1 Aug 2018 08:13:19 +0000 (09:13 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 1 Aug 2018 14:36:04 +0000 (16:36 +0200)
commitd07befdf293308c9b1f789b3230c6d59bf966dac
treec24b70915a2ef7fb8df236e5ed25dd8218852ae1
parent336464c9b1b7df957c48ee97b295a38c8f1274da
app/testpmd: set and clear keep CRC offload flag

If the "port config all crc-strip on" command is issued,
The DEV_RX_OFFLOAD_KEEP_CRC offload flag should be cleared.

If the "port config all crc-strip off command is issued,
The DEV_RX_OFFLOAD_KEEP_CRC offload flag should be set.

Fixes: 70815c9ecadd ("ethdev: add new offload flag to keep CRC")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
app/test-pmd/cmdline.c