net/ice: fix flow FDIR/switch memory leak
authorTao Zhu <taox.zhu@intel.com>
Thu, 16 Jan 2020 16:38:36 +0000 (16:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:19 +0000 (09:51 +0100)
commitdc36bd5dfdeb0ec9cee7a6140d7ed14734776756
treebf0a9b95109509b8dac58345de1e6a1b3edb2e2f
parent707911f98227c39321ef5ad8cfdea44f71283f46
net/ice: fix flow FDIR/switch memory leak

1. Fix ice FDIR and hash flow memory leak.
2. Fix the ice definition of LIST_FOR_EACH_ENTRY_SAFE not
   save tmp which cause list deletion incompletely.

Fixes: 5f0978e96220 ("net/ice/base: add OS specific implementation")
Fixes: f5cafa961fae ("net/ice: add flow director create and destroy")
Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS")
Cc: stable@dpdk.org
Signed-off-by: Tao Zhu <taox.zhu@intel.com>
Reviewed-by: Simei Su <simei.su@intel.com>
Reviewed-by: Yahui Cao <yahui.cao@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_osdep.h
drivers/net/ice/ice_fdir_filter.c
drivers/net/ice/ice_hash.c