net/i40e: fix device startup resource release
authorQiming Chen <chenqiming_huawei@163.com>
Sat, 21 Aug 2021 09:44:35 +0000 (17:44 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 13 Sep 2021 02:41:53 +0000 (04:41 +0200)
commitdaf3332e11ed7ad6cc12e0aa69cbb8b602bc5685
tree1ed05dc4a9d553cc1e19eed342c7c67f82a636d5
parent4b458675d3df13d1a35db959fe97a04a132788b2
net/i40e: fix device startup resource release

In the eth_i40e_dev_init function, the tunnel and ethertype hash table
resource release interface should be rte_hash_free instead of rte_free,
and the previously registered interrupt handling function also needs to
be removed from the interrupt list. The patch is amended to use the
correct interface to release the hash table resource and release the
interrupt handling function at the same time.

Fixes: 425c3325f0b0 ("net/i40e: store tunnel filter")
Fixes: 5c53c82c8174 ("net/i40e: store flow director filter")
Cc: stable@dpdk.org
Signed-off-by: Qiming Chen <chenqiming_huawei@163.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c