net/ice: free HW tables when device closed
authorQi Zhang <qi.z.zhang@intel.com>
Fri, 8 Nov 2019 09:40:39 +0000 (17:40 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 Nov 2019 13:23:02 +0000 (14:23 +0100)
commitc9657ad01f5ab185dcb754d926b7c86581373021
tree4b905f338964d6414018065a60c5985f5eeccde1
parent8c559a928fed12f481640b361ea6a871248ffcf4
net/ice: free HW tables when device closed

Free the HW tables during dev_close.
Otherwise there will be two issues:
1. Memory won't be freed if the device is detached.
2. Driver can't be initialized correctly after device reset.

Fixes: a4c8c48fe3f4 ("net/ice: load OS default package")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/ice_ethdev.c