From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [next PATCH S63 5/6] i40e/i40evf: Add legacy-rx private flag to allow fallback to old Rx flow
Date: Thu, 23 Mar 2017 22:25:24 -0700 [thread overview]
Message-ID: <1490333124.5679.29.camel@intel.com> (raw)
In-Reply-To: <1490332661.5679.27.camel@intel.com>
On Thu, 2017-03-23 at 22:17 -0700, Jeff Kirsher wrote:
> On Thu, 2017-03-23 at 21:23 -0700, Alexander Duyck wrote:
> > On Fri, Mar 17, 2017 at 8:57 AM, Alexander Duyck
> > <alexander.duyck@gmail.com> wrote:
> > > On Tue, Mar 14, 2017 at 10:15 AM, Bimmy Pujari <bimmy.pujari@inte
> l.
> > > com> wrote:
> > > > From: Alexander Duyck <alexander.h.duyck@intel.com>
> > > >?
> > > > This patch adds a control which will allow us to toggle into
> and
> > > > out of the
> > > > legacy Rx mode.? The legacy Rx mode is what we currently do
> when
> > > > performing
> > > > Rx.? As I make further changes what should happen is that the
> > > > driver will
> > > > fall back to the behavior for Rx as of this patch should the
> > > > "legacy-rx"
> > > > flag be set to on.
> > > >?
> > > > Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
> > > > Change-ID: I0342998849bbb31351cce05f6e182c99174e7751
> > > > ---
> > > > Testing Hints:
> > > > ???????? This flag should not appear on kernels prior to 4.10.
> > > > ???????? On kernels 4.10 and later the "legacy-rx" flag should
> > > > appear
> > > > ???????? and can be toggled between on and off. As we add more
> > > > features the
> > > > ???????? behavior of the driver should change when this value
> is
> > > > toggled.
> > > >?
> > > > ???????? Toggling this for now will only cause a reset of the
> > > > interface.
> > > >?
> > > > ???????? For the VF we are specifically replacing the define
> that
> > > > was
> > > > ???????? stripping the code for the flag needed for the
> "legacy-
> > > > rx" flag
> > > > ???????? since it doesn't make sense to have the interface
> > > > defined when
> > > > ???????? there are no flags present.? In the case of a kernel
> > > > build the
> > > > ???????? #ifdefs should be stripped and the code will remain.
> > > >?
> > > > ? drivers/net/ethernet/intel/i40e/i40e.h???????????? |?? 1 +
> > > > ? drivers/net/ethernet/intel/i40e/i40e_ethtool.c???? |?? 5 +-
> > > > ? drivers/net/ethernet/intel/i40evf/i40evf.h???????? |?? 2 +
> > > > ? drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c | 104
> > > > +++++++++++++++++++++
> > > > ? 4 files changed, 111 insertions(+), 1 deletion(-)
> > > >?
> > > > diff --git a/drivers/net/ethernet/intel/i40e/i40e.h
> > > > b/drivers/net/ethernet/intel/i40e/i40e.h
> > > > index dcba258..561fe1f 100644
> > > > --- a/drivers/net/ethernet/intel/i40e/i40e.h
> > > > +++ b/drivers/net/ethernet/intel/i40e/i40e.h
> > > > @@ -430,6 +430,7 @@ struct i40e_pf {
> > > > ? #define I40E_FLAG_TEMP_LINK_POLLING??????????? BIT_ULL(55)
> > > > ? #define I40E_FLAG_CLIENT_L2_CHANGE???????????? BIT_ULL(56)
> > > > ? #define I40E_FLAG_WOL_MC_MAGIC_PKT_WAKE???????????????
> > > > BIT_ULL(57)
> > > > +#define I40E_FLAG_LEGACY_RX??????????????????? BIT_ULL(57)
> > >?
> > > It looks like we lost sync between upstream and out-of-tree at
> some
> > > point.? We are defining both of these using the same bit.? We
> need
> > > to
> > > use a different value for the LEGACY_RX bit in the upstream it
> > > looks
> > > like.
> >?
> > Any chance we can get a fix for this?? It has been almost a week
> > since
> > I pointed out that we have a duplicate bit here, and I haven't seen
> > any updates.
> >?
> > We either need to submit a new version of this patch with us
> setting
> > I40E_FLAG_LEGACY_RX as bit 58, or if we can just get the tweak made
> > to
> > the patch while it is in the tree I would be good with that as
> well.
> > We have some other patches that are going to be adding some more
> > flags
> > in the pipeline and I would rather not have to push a fix for this
> > and
> > instead have it fixed in the patch.
>
> I will fix this inline, so no need to resubmit with the desired fix.
Ok I have made the change, but in the process of making this fix, I see
there is a fairly significant disconnect between upstream and the out-
of-tree driver when it looking at these flag values.
I will see if I can come up with either a internal patch or kernel
patch to at least clean up these flag value out of sync issue.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20170323/3ea061b9/attachment.asc>
next prev parent reply other threads:[~2017-03-24 5:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-14 17:15 [Intel-wired-lan] [next PATCH S63 1/6] i40e/i40evf: Use length to determine if descriptor is done Bimmy Pujari
2017-03-14 17:15 ` [Intel-wired-lan] [next PATCH S63 2/6] i40e/i40evf: Pull code for grabbing and syncing rx_buffer from fetch_buffer Bimmy Pujari
2017-03-21 16:39 ` Bowers, AndrewX
2017-03-14 17:15 ` [Intel-wired-lan] [next PATCH S63 3/6] i40e/i40evf: Pull out code for cleaning up Rx buffers Bimmy Pujari
2017-03-22 16:15 ` Bowers, AndrewX
2017-03-14 17:15 ` [Intel-wired-lan] [next PATCH S63 4/6] i40e/i40evf: Break i40e_fetch_rx_buffer up to allow for reuse of frag code Bimmy Pujari
2017-03-22 16:15 ` Bowers, AndrewX
2017-03-14 17:15 ` [Intel-wired-lan] [next PATCH S63 5/6] i40e/i40evf: Add legacy-rx private flag to allow fallback to old Rx flow Bimmy Pujari
2017-03-17 15:57 ` Alexander Duyck
2017-03-21 16:45 ` Bowers, AndrewX
2017-03-24 4:23 ` Alexander Duyck
2017-03-24 5:17 ` Jeff Kirsher
2017-03-24 5:25 ` Jeff Kirsher [this message]
2017-03-14 17:15 ` [Intel-wired-lan] [next PATCH S63 6/6] i40e/i40evf: Change the way we limit the maximum frame size for Rx Bimmy Pujari
2017-03-21 16:46 ` Bowers, AndrewX
2017-03-21 16:39 ` [Intel-wired-lan] [next PATCH S63 1/6] i40e/i40evf: Use length to determine if descriptor is done Bowers, AndrewX
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=1490333124.5679.29.camel@intel.com \
--to=jeffrey.t.kirsher@intel.com \
--cc=intel-wired-lan@osuosl.org \
/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