net/hns3: clear residual flow rules on init
authorChengwen Feng <fengchengwen@huawei.com>
Fri, 10 Apr 2020 11:09:26 +0000 (19:09 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit31cdde02f0be730fc1b9b12a8b53f8a04fa423fc
treeda9d754a5832f72d7105c020e358f8529afe93a3
parentc4ae39b2cfc5d189b9361ecbe73ba572eff0b395
net/hns3: clear residual flow rules on init

This patch fixes that the flow director rules are not cleared during
initialization, which lead to remaining flow director rules after upper
application (such as testpmd) restarted.

Fixes: fcba820d9b9e ("net/hns3: support flow director")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_fdir.c