net/ice/base: fix tunnel destroy
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 15 Dec 2020 04:13:57 +0000 (12:13 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:06 +0000 (16:03 +0100)
commitc7ff2213a5fe884d56adcd4a7b50ecd5810bebf2
tree2a307dc02918376a1c815982cc6461f9f917bf1e
parent608cd0a5e28337e00de45cb6e47f9d8a38126f77
net/ice/base: fix tunnel destroy

The TCAM information in AQ command buffer is not correct when destroying
the tunnel entries. The TCAM count was always ONE even multiple entries
are destroyed, and the offset of TCAM memory was also incorrect.
This patch is to fix this issue.

Fixes: 884efe3ca1f3 ("net/ice/base: add VXLAN/generic tunnel management")
Cc: stable@dpdk.org
Signed-off-by: Xiao Zhang <xiao.zhang@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_flex_pipe.c