DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Zeng, XiaoxiaoX" <xiaoxiaox.zeng@intel.com>
To: "Zhang, Qi Z" <qi.z.zhang@intel.com>,
	"Ye, Xiaolong" <xiaolong.ye@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, "Su, Simei" <simei.su@intel.com>,
	"Cao, Yahui" <yahui.cao@intel.com>
Subject: Re: [dpdk-dev] [PATCH] net/ice/base: fix FDIR rule passthrough mode
Date: Fri, 8 May 2020 09:34:11 +0000	[thread overview]
Message-ID: <FA979DD015B0CA41A7C777E75BD0A9F003E84F6A@CDSMSX102.ccr.corp.intel.com> (raw)
In-Reply-To: <35e49819d2b24673a62a497b173e8bb3@intel.com>


Tested-by: Zeng,Xiaoxiao<xiaoxiaox.zeng@intel.com>


Best regards,
Zeng,xiaoxiao


> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Simei Su
> Sent: Friday, May 8, 2020 9:22 AM
> To: Zhang, Qi Z <qi.z.zhang@intel.com>; Ye, Xiaolong
> <xiaolong.ye@intel.com>
> Cc: dev@dpdk.org; Cao, Yahui <yahui.cao@intel.com>; Su, Simei
> <simei.su@intel.com>
> Subject: [dpdk-dev] [PATCH] net/ice/base: fix FDIR rule passthrough mode
> 
> This patch adds support for FDIR passthrough mode. When FDIR rule hits,
> FDIR just forward this packet to the next stage filter.
> 
> Fixes: 55daca4e45fc ("net/ice/base: change function to static")
> 
> Signed-off-by: Simei Su <simei.su@intel.com>
> ---
>  drivers/net/ice/base/ice_fdir.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ice/base/ice_fdir.c b/drivers/net/ice/base/ice_fdir.c
> index c703a7c..33a1732 100644
> --- a/drivers/net/ice/base/ice_fdir.c
> +++ b/drivers/net/ice/base/ice_fdir.c
> @@ -465,6 +465,10 @@
>  	if (input->dest_ctl == ICE_FLTR_PRGM_DESC_DEST_DROP_PKT) {
>  		fdir_fltr_ctx.drop = ICE_FXD_FLTR_QW0_DROP_YES;
>  		fdir_fltr_ctx.qindex = 0;
> +	} else if (input->dest_ctl ==
> +			ICE_FLTR_PRGM_DESC_DEST_DIRECT_PKT_OTHER) {
> +		fdir_fltr_ctx.drop = ICE_FXD_FLTR_QW0_DROP_NO;
> +		fdir_fltr_ctx.qindex = 0;
>  	} else {
>  		if (input->dest_ctl ==
>  		    ICE_FLTR_PRGM_DESC_DEST_DIRECT_PKT_QGROUP)
> @@ -476,7 +480,10 @@
>  	fdir_fltr_ctx.cnt_index = input->cnt_index;
>  	fdir_fltr_ctx.fd_vsi = ice_get_hw_vsi_num(hw, input->dest_vsi);
>  	fdir_fltr_ctx.evict_ena = ICE_FXD_FLTR_QW0_EVICT_ENA_FALSE;
> -	fdir_fltr_ctx.toq_prio = 3;
> +	if (input->dest_ctl ==
> ICE_FLTR_PRGM_DESC_DEST_DIRECT_PKT_OTHER)
> +		fdir_fltr_ctx.toq_prio = 0;
> +	else
> +		fdir_fltr_ctx.toq_prio = 3;
>  	fdir_fltr_ctx.pcmd = (add) ? ICE_FXD_FLTR_QW1_PCMD_ADD :
>  		ICE_FXD_FLTR_QW1_PCMD_REMOVE;
>  	fdir_fltr_ctx.swap = ICE_FXD_FLTR_QW1_SWAP_NOT_SET;
> --
> 1.8.3.1


  parent reply	other threads:[~2020-05-08  9:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-08  1:22 Simei Su
     [not found] ` <35e49819d2b24673a62a497b173e8bb3@intel.com>
2020-05-08  9:34   ` Zeng, XiaoxiaoX [this message]
2020-05-15  6:44 ` Zhang, Qi Z
2020-05-15  6:50 ` Ye Xiaolong
2020-05-15  8:33   ` Su, Simei
2020-05-18  0:44     ` Ye Xiaolong
2020-05-18  0:47 ` Ye Xiaolong

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=FA979DD015B0CA41A7C777E75BD0A9F003E84F6A@CDSMSX102.ccr.corp.intel.com \
    --to=xiaoxiaox.zeng@intel.com \
    --cc=dev@dpdk.org \
    --cc=qi.z.zhang@intel.com \
    --cc=simei.su@intel.com \
    --cc=xiaolong.ye@intel.com \
    --cc=yahui.cao@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).