DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>
To: "Xing, Beilei" <beilei.xing@intel.com>,
	"Zhang, Helin" <helin.zhang@intel.com>,
	"Wu, Jingjing" <jingjing.wu@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH 1/3] net/i40e: support flexible payload parsing	for FDIR
Date: Tue, 6 Jun 2017 07:46:10 +0000	[thread overview]
Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B5CC583@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <1495606206-72739-2-git-send-email-beilei.xing@intel.com>

Hi Beilei,

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Beilei Xing
> Sent: Wednesday, May 24, 2017 2:10 PM
> To: Zhang, Helin; Wu, Jingjing
> Cc: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH 1/3] net/i40e: support flexible payload parsing
> for FDIR
> 
> This patch adds flexible payload parsing support for flow director filter.
> 
> Signed-off-by: Beilei Xing <beilei.xing@intel.com>
> ---
>  drivers/net/i40e/i40e_ethdev.h |  23 ++++
>  drivers/net/i40e/i40e_fdir.c   |  19 ---
>  drivers/net/i40e/i40e_flow.c   | 298
> ++++++++++++++++++++++++++++++++++++++++-
>  3 files changed, 317 insertions(+), 23 deletions(-)

> +
> +static int
> +i40e_flow_store_flex_pit(struct i40e_pf *pf,
> +			 struct i40e_fdir_flex_pit *flex_pit,
> +			 enum i40e_flxpld_layer_idx layer_idx,
> +			 uint8_t raw_id)
> +{
> +	uint8_t field_idx;
> +
> +	field_idx = layer_idx * I40E_MAX_FLXPLD_FIED + raw_id;
> +	/* Check if the configuration is conflicted */
> +	if (pf->fdir.flex_pit_flag[layer_idx] &&
> +	    (pf->fdir.flex_set[field_idx].src_offset != flex_pit->src_offset ||
> +	     pf->fdir.flex_set[field_idx].size != flex_pit->size ||
> +	     pf->fdir.flex_set[field_idx].dst_offset != flex_pit->dst_offset))
> +		return -1;
> +
> +	if (pf->fdir.flex_pit_flag[layer_idx] &&
> +	    (pf->fdir.flex_set[field_idx].src_offset == flex_pit->src_offset &&
> +	     pf->fdir.flex_set[field_idx].size == flex_pit->size &&
> +	     pf->fdir.flex_set[field_idx].dst_offset == flex_pit->dst_offset))
> +		return 1;
Is this check necessary? Don't find a specific handling for this return value.
If it's necessary, would you like to add some comments about this check?

> +
> +	pf->fdir.flex_set[field_idx].src_offset =
> +		flex_pit->src_offset;
> +	pf->fdir.flex_set[field_idx].size =
> +		flex_pit->size;
> +	pf->fdir.flex_set[field_idx].dst_offset =
> +		flex_pit->dst_offset;
> +
> +	return 0;
> +}

  reply	other threads:[~2017-06-06  7:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-24  6:10 [dpdk-dev] [PATCH 0/3] net/i40e: add advanced features " Beilei Xing
2017-05-24  6:10 ` [dpdk-dev] [PATCH 1/3] net/i40e: support flexible payload parsing " Beilei Xing
2017-06-06  7:46   ` Lu, Wenzhuo [this message]
2017-06-06  7:58     ` Xing, Beilei
2017-05-24  6:10 ` [dpdk-dev] [PATCH 2/3] net/i40e: support input set selection " Beilei Xing
2017-06-06  8:04   ` Lu, Wenzhuo
2017-05-24  6:10 ` [dpdk-dev] [PATCH 3/3] net/i40e: update supported patterns " Beilei Xing
2017-06-06  8:32   ` Lu, Wenzhuo
2017-06-07  8:09 ` [dpdk-dev] [PATCH v2 0/4] net/i40e: add advanced features " Beilei Xing
2017-06-07  8:09   ` [dpdk-dev] [PATCH v2 1/4] net/i40e: support flexible payload parsing " Beilei Xing
2017-06-08  2:48     ` Lu, Wenzhuo
2017-06-08 10:02     ` Ferruh Yigit
2017-06-07  8:09   ` [dpdk-dev] [PATCH v2 2/4] net/i40e: support input set selection " Beilei Xing
2017-06-07  8:09   ` [dpdk-dev] [PATCH v2 3/4] net/i40e: update supported patterns " Beilei Xing
2017-06-07  8:09   ` [dpdk-dev] [PATCH v2 4/4] net/i40e: support ether pattern " Beilei Xing
2017-06-08  2:59     ` Lu, Wenzhuo
2017-06-09  8:21   ` [dpdk-dev] [PATCH v3 0/4] net/i40e: add advanced features " Beilei Xing
2017-06-09  8:21     ` [dpdk-dev] [PATCH v3 1/4] net/i40e: support flexible payload parsing " Beilei Xing
2017-06-09  8:21     ` [dpdk-dev] [PATCH v3 2/4] net/i40e: support input set selection " Beilei Xing
2017-06-09  8:21     ` [dpdk-dev] [PATCH v3 3/4] net/i40e: update supported patterns " Beilei Xing
2017-06-09  8:21     ` [dpdk-dev] [PATCH v3 4/4] net/i40e: support ether pattern " Beilei Xing
2017-06-09 10:59     ` [dpdk-dev] [PATCH v3 0/4] net/i40e: add advanced features " Ferruh Yigit

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=6A0DE07E22DDAD4C9103DF62FEBC09093B5CC583@shsmsx102.ccr.corp.intel.com \
    --to=wenzhuo.lu@intel.com \
    --cc=beilei.xing@intel.com \
    --cc=dev@dpdk.org \
    --cc=helin.zhang@intel.com \
    --cc=jingjing.wu@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).