From: "Wu, Jingjing" <jingjing.wu@intel.com>
To: Michael Habibi <mikehabibi@gmail.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Bug in i40e PMD for flexible payload
Date: Thu, 14 Apr 2016 03:31:24 +0000 [thread overview]
Message-ID: <9BB6961774997848B5B42BEC655768F8E14268@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <CAOsp8o-F-QAqmEV=9GkeB4DZz+YhHwNY=GYW1C9q8EdoVQ9R1g@mail.gmail.com>
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))
prev parent reply other threads:[~2016-04-14 3:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-23 18:44 Michael Habibi
2016-03-24 12:04 ` Bruce Richardson
2016-03-28 18:36 ` Michael Habibi
2016-04-14 3:31 ` Wu, Jingjing [this message]
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=9BB6961774997848B5B42BEC655768F8E14268@SHSMSX104.ccr.corp.intel.com \
--to=jingjing.wu@intel.com \
--cc=dev@dpdk.org \
--cc=mikehabibi@gmail.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).