From: Rosen Xu Date: Wed, 18 Apr 2018 08:11:41 +0000 (+0800) Subject: net/i40e: add workaround promiscuous disable X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cae18d2b0fb4330e1061689e3884bbdfcda3f253;p=dpdk.git net/i40e: add workaround promiscuous disable In scenario of Kernel Driver runs on PF and PMD runs on VF, PMD exit doesn't disable promiscuous mode, this will cause vlan filter set by Kernel Driver will not take effect. This patch will fix it, add promiscuous disable at device disable. Signed-off-by: Rosen Xu Acked-by: Qi Zhang --- diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index b9dea2e5b8..a1e9ee7fb1 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -2287,6 +2287,14 @@ i40evf_dev_close(struct rte_eth_dev *dev) i40evf_dev_stop(dev); i40e_dev_free_queues(dev); + /* + * disable promiscuous mode before reset vf + * it is a workaround solution when work with kernel driver + * and it is not the normal way + */ + i40evf_dev_promiscuous_disable(dev); + i40evf_dev_allmulticast_disable(dev); + i40evf_reset_vf(hw); i40e_shutdown_adminq(hw); /* disable uio intr before callback unregister */