app/testpmd: fix SW checksum calculation enabling
authorJiayu Hu <jiayu.hu@intel.com>
Thu, 25 Jan 2018 02:13:44 +0000 (10:13 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 22:34:47 +0000 (23:34 +0100)
commit7132ca8fa8e8faae28e04b3cba2b7e7fdef991e8
tree46d4ea01d162ebbe795832f803171a9e9de36757
parent8b9bd0efe0b6920a08e28eebacf2bb916bdf5653
app/testpmd: fix SW checksum calculation enabling

In current design, we can't enable SW checksum calculation
for the devices which don't have checksum offloading abilities
via the command "csum set ip|tcp|udp|sctp|outer-ip sw <port_id>".
But SW checksum calculation shouldn't depend on HW offloading
abilities. This patch is to fix this issue.

Fixes: 3926dd2b6668 ("app/testpmd: enforce offload capabilities check")

Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
Reviewed-by: Shahaf Shuler <shahafs@mellanox.com>
app/test-pmd/cmdline.c