DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Bug in i40e PMD for flexible payload
@ 2016-03-23 18:44 Michael Habibi
  2016-03-24 12:04 ` Bruce Richardson
  2016-04-14  3:31 ` Wu, Jingjing
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Habibi @ 2016-03-23 18:44 UTC (permalink / raw)
  To: dev

We are using the i40 implementation to configure flow director with
flexible payload rules. When setting up rules, it allows you to set a value
to 63 to disable the rule (NONUSE_FLX_PIT_DEST_OFF). However, the macro in
question is always adding an offset value 50
(I40E_FLX_OFFSET_IN_FIELD_VECTOR). This doesn't work when you use it in
conjunction with NONUSE_FLX_PIT_DEST_OFF to disable it, because instead of
taking 63 as is, it does 63 + 50 and breaks the functionality.

We used the following fix and it appears to work. Just sharing with the
DPDK team in case they want to bring it in.

Index: i40e_fdir.c

===================================================================

--- i40e_fdir.c (revision 30006)

+++ i40e_fdir.c (working copy)

@@ -90,7 +90,8 @@

          I40E_PRTQF_FLX_PIT_SOURCE_OFF_MASK) | \

    (((fsize) << I40E_PRTQF_FLX_PIT_FSIZE_SHIFT) & \

               I40E_PRTQF_FLX_PIT_FSIZE_MASK) | \

-    ((((dst_offset) + I40E_FLX_OFFSET_IN_FIELD_VECTOR) << \

+    ((((dst_offset) + ((dst_offset < NONUSE_FLX_PIT_DEST_OFF) ? \

+               I40E_FLX_OFFSET_IN_FIELD_VECTOR : 0)) << \

               I40E_PRTQF_FLX_PIT_DEST_OFF_SHIFT) & \

               I40E_PRTQF_FLX_PIT_DEST_OFF_MASK))

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] Bug in i40e PMD for flexible payload
  2016-03-23 18:44 [dpdk-dev] Bug in i40e PMD for flexible payload Michael Habibi
@ 2016-03-24 12:04 ` Bruce Richardson
  2016-03-28 18:36   ` Michael Habibi
  2016-04-14  3:31 ` Wu, Jingjing
  1 sibling, 1 reply; 4+ messages in thread
From: Bruce Richardson @ 2016-03-24 12:04 UTC (permalink / raw)
  To: Michael Habibi; +Cc: dev

On Wed, Mar 23, 2016 at 01:44:46PM -0500, Michael Habibi wrote:
> We are using the i40 implementation to configure flow director with
> flexible payload rules. When setting up rules, it allows you to set a value
> to 63 to disable the rule (NONUSE_FLX_PIT_DEST_OFF). However, the macro in
> question is always adding an offset value 50
> (I40E_FLX_OFFSET_IN_FIELD_VECTOR). This doesn't work when you use it in
> conjunction with NONUSE_FLX_PIT_DEST_OFF to disable it, because instead of
> taking 63 as is, it does 63 + 50 and breaks the functionality.
> 
> We used the following fix and it appears to work. Just sharing with the
> DPDK team in case they want to bring it in.
>
Thanks for this. Can you perhaps resubmit this fix in the form of an official
patch to DPDK, including a proper sign-off on it. The details for contributing
patches to DPDK is documented here: 
http://dpdk.org/doc/guides/contributing/patches.html

Without a signoff, we can't take in your code and use it.

Regards,
/Bruce

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] Bug in i40e PMD for flexible payload
  2016-03-24 12:04 ` Bruce Richardson
@ 2016-03-28 18:36   ` Michael Habibi
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Habibi @ 2016-03-28 18:36 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev

I will have one of my team members follow the instructions and we'll have a
patch out this week hopefully.

On Thu, Mar 24, 2016 at 7:04 AM, Bruce Richardson <
bruce.richardson@intel.com> wrote:

> On Wed, Mar 23, 2016 at 01:44:46PM -0500, Michael Habibi wrote:
> > We are using the i40 implementation to configure flow director with
> > flexible payload rules. When setting up rules, it allows you to set a
> value
> > to 63 to disable the rule (NONUSE_FLX_PIT_DEST_OFF). However, the macro
> in
> > question is always adding an offset value 50
> > (I40E_FLX_OFFSET_IN_FIELD_VECTOR). This doesn't work when you use it in
> > conjunction with NONUSE_FLX_PIT_DEST_OFF to disable it, because instead
> of
> > taking 63 as is, it does 63 + 50 and breaks the functionality.
> >
> > We used the following fix and it appears to work. Just sharing with the
> > DPDK team in case they want to bring it in.
> >
> Thanks for this. Can you perhaps resubmit this fix in the form of an
> official
> patch to DPDK, including a proper sign-off on it. The details for
> contributing
> patches to DPDK is documented here:
> http://dpdk.org/doc/guides/contributing/patches.html
>
> Without a signoff, we can't take in your code and use it.
>
> Regards,
> /Bruce
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] Bug in i40e PMD for flexible payload
  2016-03-23 18:44 [dpdk-dev] Bug in i40e PMD for flexible payload Michael Habibi
  2016-03-24 12:04 ` Bruce Richardson
@ 2016-04-14  3:31 ` Wu, Jingjing
  1 sibling, 0 replies; 4+ messages in thread
From: Wu, Jingjing @ 2016-04-14  3:31 UTC (permalink / raw)
  To: Michael Habibi, dev

Thanks, Michael.

Ack to your change. Could you send patch for that?

Thanks
Jingjing

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Habibi
> Sent: Thursday, March 24, 2016 2:45 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] Bug in i40e PMD for flexible payload
> 
> We are using the i40 implementation to configure flow director with flexible
> payload rules. When setting up rules, it allows you to set a value to 63 to
> disable the rule (NONUSE_FLX_PIT_DEST_OFF). However, the macro in
> question is always adding an offset value 50
> (I40E_FLX_OFFSET_IN_FIELD_VECTOR). This doesn't work when you use it in
> conjunction with NONUSE_FLX_PIT_DEST_OFF to disable it, because instead
> of taking 63 as is, it does 63 + 50 and breaks the functionality.
> 
> We used the following fix and it appears to work. Just sharing with the DPDK
> team in case they want to bring it in.
> 
> Index: i40e_fdir.c
> 
> ==========================================================
> =========
> 
> --- i40e_fdir.c (revision 30006)
> 
> +++ i40e_fdir.c (working copy)
> 
> @@ -90,7 +90,8 @@
> 
>           I40E_PRTQF_FLX_PIT_SOURCE_OFF_MASK) | \
> 
>     (((fsize) << I40E_PRTQF_FLX_PIT_FSIZE_SHIFT) & \
> 
>                I40E_PRTQF_FLX_PIT_FSIZE_MASK) | \
> 
> -    ((((dst_offset) + I40E_FLX_OFFSET_IN_FIELD_VECTOR) << \
> 
> +    ((((dst_offset) + ((dst_offset < NONUSE_FLX_PIT_DEST_OFF) ? \
> 
> +               I40E_FLX_OFFSET_IN_FIELD_VECTOR : 0)) << \
> 
>                I40E_PRTQF_FLX_PIT_DEST_OFF_SHIFT) & \
> 
>                I40E_PRTQF_FLX_PIT_DEST_OFF_MASK))

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-14  3:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-23 18:44 [dpdk-dev] Bug in i40e PMD for flexible payload Michael Habibi
2016-03-24 12:04 ` Bruce Richardson
2016-03-28 18:36   ` Michael Habibi
2016-04-14  3:31 ` Wu, Jingjing

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).