app/testpmd: fix offload flags after port config
authorWei Zhao <wei.zhao1@intel.com>
Thu, 9 May 2019 07:20:47 +0000 (15:20 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 13 May 2019 15:06:27 +0000 (17:06 +0200)
commit5e91aeef218c452c370aacf74265c7a42b67dffa
tree7319e4e3b49bd19b306baf500b1c936b8e9a30b1
parent40d9f906f4e2b6028bd61d68d32956c6a809be03
app/testpmd: fix offload flags after port config

There is an error in function rxtx_port_config(), which may overwrite
offloads configuration get from function launch_args_parse() when run
testpmd app. So rxtx_port_config() should do "or" for port offloads.

Fixes: d44f8a485f5d ("app/testpmd: enable per queue configure")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Tested-by: Peng Yuan <yuan.peng@intel.com>
app/test-pmd/testpmd.c