net/cxgbe: fix CLIP leak in filter error path
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 12 Jun 2020 22:07:23 +0000 (03:37 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 17 Jun 2020 13:31:32 +0000 (15:31 +0200)
commit844b21299f1a10ac350528365dc761e2934512ee
tree980279f37036b0c39bfcdfd9f8c5bb510cbe11e8
parentc5f5243d2e9c2353693a3638d3358b3852ec870c
net/cxgbe: fix CLIP leak in filter error path

Free up Compressed Local IP (CLIP) entry properly during filter
creation failure path. Also consolidate all various tables
cleanup to a common function and invoke it from both wild-card
and exact-match filter paths.

Fixes: af44a577988b ("net/cxgbe: support to offload flows to HASH region")
Cc: stable@dpdk.org
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/cxgbe_filter.c