DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Zhang, Xiao" <xiao.zhang@intel.com>
To: Eelco Chaudron <echaudro@redhat.com>
Cc: "Zhang, Qi Z" <qi.z.zhang@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	"Xing, Beilei" <beilei.xing@intel.com>
Subject: Re: [dpdk-dev] [PATCH] net/i40e: force promiscuous state after VF reset
Date: Wed, 13 Nov 2019 01:14:43 +0000	[thread overview]
Message-ID: <AF0377F445CB2540BB46FF359C1C1BBE01BAD62F@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <56E46949-C2B5-42C6-9F21-E4A5E519A628@redhat.com>



> -----Original Message-----
> From: Eelco Chaudron [mailto:echaudro@redhat.com]
> Sent: Tuesday, November 12, 2019 7:09 PM
> To: Zhang, Xiao <xiao.zhang@intel.com>
> Cc: Zhang, Qi Z <qi.z.zhang@intel.com>; dev@dpdk.org; Xing, Beilei
> <beilei.xing@intel.com>
> Subject: Re: [dpdk-dev] [PATCH] net/i40e: force promiscuous state after VF
> reset
> 
> 
> 
> On 12 Nov 2019, at 1:52, Zhang, Xiao wrote:
> 
> > Hi Eelco,
> >
> > Seems you missed this mail.
> 
> Not sure why I missed this email, as it does not show up in my email client :( See
> below…
> 
> 
> <SNIP>
> >>>>>> Hi Eelco,
> >>>>>>
> >>>>>> I think you may need add more detailed message in the commit log
> >>>>>> or comments.
> >>>>>
> >>>>> My interpretation of the request was that Beilei wanted to know
> >>>>> why
> >>>>> disabling promiscuous mode in HW was failing. Beilei can you
> >>>>> comment, is the additional description from Xiao enough?
> >>>>
> >>>> Yes, promisc_unicast_enabled flag is not cleared during vf reset
> >>>> because fail to disable promiscuous mode, So I think we need to
> >>>> root
> >>>> cause why fail to  disable promiscuous mode first.
> >>>> This patch looks like a workaround but not a fix.
> >>>>
> >>>
> >>> This was debugged together with Xiao and from what I understand is
> >>> that DPDK fails to reset promiscuous mode in hardware as PF and VF
> >>> operations are not synced between kernel and DPDK.
> >>>
> >>> Xiao told me this could not be fixed in another way, Xiao can you
> >>> comment?
> >>>
> >>
> >> Checked again, the root cause is not synced issue between kernel and
> >> DPDK
> >> during reset.
> 
> What is the root cause, so I can update the patch description for the
> next revision.

Kernel PF do reset once VF mac changed and send reset event to VF,
VF do reset once received even if reset task not done by PF, so admin q message will not get response.

> 
> >> Suggest to remove the checking and setting of promisc_unicast_enabled
> >> flag,
> >> since this flag is only used when enable/disable promiscuous mode.
> >> Considering the un-synced issue, it will be more clean if remove the
> >> flag.
> >> Also same with flag promisc_multicast_enabled.
> 
> So if I understand it correctly remove the following code:
> 
> 2203  	/* If enabled, just return */
> 2204  	if (vf->promisc_multicast_enabled)
> 2205  		return 0;
> 
> and
> 
> 2222  	/* If enabled, just return */
> 2223  	if (!vf->promisc_multicast_enabled)
> 2224  		return 0;
> 
> Or to remove the flags from the i40e_vf structure (and relative  code):
> 
> 1051  	bool promisc_unicast_enabled;
> 1052  	bool promisc_multicast_enabled;
> 
> Let me know and I craft up a patch…

You can remove promisc_unicast_enabled/promisc_multicast_enabled and related code.

Thanks,
Xiao
> 
> 
> Cheers,
> 
> 
> Eelco


  reply	other threads:[~2019-11-13  1:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-17  7:40 Eelco Chaudron
2019-10-15 10:31 ` Eelco Chaudron
2019-10-17  6:34   ` Xing, Beilei
2019-10-25  9:23     ` Eelco Chaudron
2019-10-29  7:39       ` Zhang, Xiao
2019-10-29  7:47         ` Eelco Chaudron
2019-11-01  2:38           ` Xing, Beilei
2019-11-01  8:12             ` Eelco Chaudron
2019-11-06  4:58               ` Zhang, Xiao
2019-11-12  0:52                 ` Zhang, Xiao
2019-11-12 11:09                   ` Eelco Chaudron
2019-11-13  1:14                     ` Zhang, Xiao [this message]
2019-11-19 13:55                       ` Eelco Chaudron
2019-11-11 13:59               ` Eelco Chaudron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AF0377F445CB2540BB46FF359C1C1BBE01BAD62F@SHSMSX101.ccr.corp.intel.com \
    --to=xiao.zhang@intel.com \
    --cc=beilei.xing@intel.com \
    --cc=dev@dpdk.org \
    --cc=echaudro@redhat.com \
    --cc=qi.z.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).