net/ice/base: fix memory leak on GTPU RSS
authorJunfeng Guo <junfeng.guo@intel.com>
Mon, 20 Jul 2020 07:09:55 +0000 (15:09 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Jul 2020 11:54:54 +0000 (13:54 +0200)
commitc7b545fc91137803a2c42bff512e9a6b7254c936
tree7b8881b2d86bcd2981f9e9fd6b4765bae3ef98f5
parentae6575409ff5609e44d53e1c3014ae77105e8610
net/ice/base: fix memory leak on GTPU RSS

Add memory space free logic for adding and removing GTP-U before return
success status, to avoid memory leak issue.

Fixes: bed9bb3139ef ("net/ice/base: fix GTP-U inner RSS IPv4 IPv6 co-exist")
Cc: stable@dpdk.org
Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_flow.c