net/ice: fix memzone leak after device init failure
authorHaiyue Wang <haiyue.wang@intel.com>
Fri, 13 Aug 2021 06:21:54 +0000 (14:21 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Sun, 29 Aug 2021 11:13:54 +0000 (13:13 +0200)
commit96b25c496aadae16c548ea25c0267a73154dbd64
tree8fe77061101a6d91cb5d2d7973cdce05ca51897e
parente4d745abaffb92bf2aaf4befda4a2c5a68ab90a9
net/ice: fix memzone leak after device init failure

When flow engine initialization or FXP resource reset failed, it needs
to free the memory zone and unregister the interrupt callback.

Bugzilla ID: 752
Fixes: 84dc7a95a2d3 ("net/ice: enable flow director engine")
Fixes: 7615a6895009 ("net/ice: rework for generic flow enabling")
Fixes: 7edc7158d771 ("net/ice: cleanup RSS/FDIR profile on device init")
Cc: stable@dpdk.org
Reported-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_ethdev.c
drivers/net/ice/ice_fdir_filter.c