From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Zhang, Qi Z" Subject: Re: [PATCH v3] drivers/net/i40e: fix missing promiscuous disable at device disable Date: Tue, 17 Apr 2018 13:31:27 +0000 Message-ID: <039ED4275CED7440929022BC67E706115319A0CE@shsmsx102.ccr.corp.intel.com> References: <1521090873-50595-1-git-send-email-rosen.xu@intel.com> <1523934168-128914-1-git-send-email-rosen.xu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "Xing, Beilei" , "Zhang, Helin" , "Wu, Jingjing" To: "Xu, Rosen" , "dev@dpdk.org" Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 7474A7CA9 for ; Tue, 17 Apr 2018 15:31:33 +0200 (CEST) In-Reply-To: <1523934168-128914-1-git-send-email-rosen.xu@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Rosen: > -----Original Message----- > From: Xu, Rosen > Sent: Tuesday, April 17, 2018 11:03 AM > To: dev@dpdk.org > Cc: Xing, Beilei ; Zhang, Helin > ; Zhang, Qi Z ; Wu, Jingjing > > Subject: [PATCH v3] drivers/net/i40e: fix missing promiscuous disable at > device disable >=20 > v3 updates: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > - Move modification from device close to device disable > - i40evf_reset_vf() will cause kernel driver enable all vlan promiscuous= , > so unicast/multicast promiscuous disable should set before reset. >=20 > v2 updates: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > - Add more comments Version log can be added after ---, so it will not be included by commit lo= g. >=20 > 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 Kern= el > Driver will not take effect. >=20 > This patch will fix it, add promiscuous disable at device disable. >=20 > Signed-off-by: Rosen Xu > --- > drivers/net/i40e/i40e_ethdev_vf.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/net/i40e/i40e_ethdev_vf.c > b/drivers/net/i40e/i40e_ethdev_vf.c > index 031c706..40012b0 100644 > --- a/drivers/net/i40e/i40e_ethdev_vf.c > +++ b/drivers/net/i40e/i40e_ethdev_vf.c > @@ -2288,6 +2288,8 @@ static int eth_i40evf_pci_remove(struct > rte_pci_device *pci_dev) >=20 > i40evf_dev_stop(dev); > i40e_dev_free_queues(dev); I think it's better to add some comment here,=20 since this is a workaround solution and it is not the normal way we disable promiscuous mode, people need to be noticed here.=20 Regards Qi > + i40evf_dev_promiscuous_disable(dev); > + i40evf_dev_allmulticast_disable(dev); > i40evf_reset_vf(hw); > i40e_shutdown_adminq(hw); > /* disable uio intr before callback unregister */ > -- > 1.8.3.1