net/hns3: clear promiscuous on PF uninit
authorChengchang Tang <tangchengchang@huawei.com>
Fri, 22 May 2020 09:21:15 +0000 (17:21 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 28 May 2020 15:57:07 +0000 (17:57 +0200)
commit3f28ec4a88abc319d63c652141d716720d93dc47
tree1de2e33e25288a96be12a73123d55d0c5f2dc7e9
parente7eb703f8b7ef238459e4209c49db8ed12fccbae
net/hns3: clear promiscuous on PF uninit

Currently, promiscuous mode configuration are not cleared during
uninstallation based on hns3 PF device. The residual entries may cause
unnecessary bandwidth usage.

So, we need clear the PF's promisc mode status during the uninit.

Fixes: a45fd0aa0ea1 ("net/hns3: fix Rx queue search with broadcast packet")
Fixes: d51867db65c1 ("net/hns3: add initialization")
Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_ethdev.c