app/testpmd: fix offloads config
authorWei Zhao <wei.zhao1@intel.com>
Mon, 10 Jun 2019 06:45:10 +0000 (14:45 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 3 Jul 2019 10:57:30 +0000 (12:57 +0200)
commit575e0fd1a0b33b5b6c977f743fd4ba27b3523517
treeea96fa46f09fe4df8bf14cfbbee13588fe076186
parentd72ce66556be6c3f5eee00aa7957e53b8ddfd72c
app/testpmd: fix offloads config

There is no need to use default offloads configuration
if offloads configuration has been pass down from upper layer.
The default offloads are overwritten if not zero.

Fixes: 5e91aeef218c ("app/testpmd: fix offload flags after port config")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/testpmd.c