app/testpmd: remove unnecessary UDP tunnel check
authorXiaoyun Li <xiaoyun.li@intel.com>
Thu, 18 Feb 2021 03:06:10 +0000 (11:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 25 Feb 2021 16:53:40 +0000 (17:53 +0100)
commit9d32f448ea0096185d0bbc5582c8b57f090c88a6
tree5afba38594effc9cf8f9c3242f489d2c0f2a58ff
parent656bfc9a4e3d377ebf160132242d1bb2b5f9b8b2
app/testpmd: remove unnecessary UDP tunnel check

cmd_tunnel_udp_config checked 'cmd' to set prot_type but this cmd is
only for rx_vxlan_port. The unnecessary cmd check will cause uninit
coverity issue. So remove it and rename 'cmd' to 'rx_vxlan_port'.

Coverity issue: 366155
Fixes: bd948f20d609 ("app/testpmd: VXLAN packet identification")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline.c