app/testpmd: check if CRC strip offload supported
authorFerruh Yigit <ferruh.yigit@intel.com>
Wed, 9 May 2018 22:09:04 +0000 (23:09 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:32:22 +0000 (22:32 +0100)
commit7c45f6c0794858999696f1f54b59d2a0e436e68b
tree17dfdc64eb36db5a1ecc25257f5dec763b450a1b
parent907252079a0cf56b61754a59739e3a5703b28524
app/testpmd: check if CRC strip offload supported

Testpmd set CRC_STRIP offload blindly, this is wrong according offload
API definition, and will cause error for the PMDs that doesn't support
CRC_STRIP like virtual PMDs.

Check if underlying device report this capability and don't set it if
not supported.

Fixes: 0074d02fca21 ("app/testpmd: convert to new Rx offloads API")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/testpmd.c