net/cxgbe: fix SMT leak in filter error and free path
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 12 Jun 2020 22:07:26 +0000 (03:37 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 17 Jun 2020 13:31:32 +0000 (15:31 +0200)
commit7fe1d0b459adb28ee591445d2d1ee9bda3c538ee
treef5a369dad23cd49c677cc51ae9b4debf9376f70c
parentbe5f4d5ced10f9d7edc8ba4b3f1d98b9d476d367
net/cxgbe: fix SMT leak in filter error and free path

Free up Source MAC Table (SMT) entry properly during filter create
failure and filter delete.

Fixes: 993541b2fa4f ("net/cxgbe: support flow API for source MAC rewrite")
Cc: stable@dpdk.org
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/cxgbe_filter.c
drivers/net/cxgbe/smt.c
drivers/net/cxgbe/smt.h