net/hns3: fix flow director rule residue on malloc failure
authorChengwen Feng <fengchengwen@huawei.com>
Wed, 3 Feb 2021 12:23:54 +0000 (20:23 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Feb 2021 17:19:37 +0000 (18:19 +0100)
commit2b9a66e1b606d3813d72dd81c626949e09706e27
tree53c8a06b4050cd2b8954cb4075fd3c0cf09e1daf
parentb52366011d59f726b042ad8a1049d25c5d053eae
net/hns3: fix flow director rule residue on malloc failure

After FD rule config success, driver will malloc fdir_rule to hold the
rule info, if malloc fail the FD rule in hardware was not cleanup.

Fixes: fcba820d9b9e ("net/hns3: support flow director")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_flow.c