diff options
author | Jian Shen <shenjian15@huawei.com> | 2018-10-01 12:46:46 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-01 22:57:45 -0700 |
commit | dc5e6064774e5629859ca9c9e97a1d3d5017a9e3 (patch) | |
tree | 0f558a927115750c1f8526acc47a694a25533463 /drivers/net/ethernet/hisilicon/hns3 | |
parent | 6871af29b3abe6d6ae3a0e28b8bdf44bd4cb8d30 (diff) |
net: hns3: Remove all flow director rules when unload hns3 driver
This patch removes all flow director rules when unload hns3 driver.
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index df4410eea27b..96f07ca3ea46 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -3286,6 +3286,8 @@ static void hns3_client_uninit(struct hnae3_handle *handle, bool reset) if (netdev->reg_state != NETREG_UNINITIALIZED) unregister_netdev(netdev); + hns3_del_all_fd_rules(netdev, true); + hns3_force_clear_all_rx_ring(handle); ret = hns3_nic_uninit_vector_data(priv); |