From: "Zhao1, Wei" <wei.zhao1@intel.com>
To: "Sun, GuinanX" <guinanx.sun@intel.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: "Xing, Beilei" <beilei.xing@intel.com>,
"Guo, Jia" <jia.guo@intel.com>,
"Sun, GuinanX" <guinanx.sun@intel.com>
Subject: Re: [dpdk-dev] [PATCH] net/i40e: enable port filter by switch filter
Date: Mon, 15 Jun 2020 06:12:39 +0000 [thread overview]
Message-ID: <MWHPR11MB1391B854A768B3C95AD0B07BB79C0@MWHPR11MB1391.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20200611052416.14592-1-guinanx.sun@intel.com>
Hi, Guinan
> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Guinan Sun
> Sent: Thursday, June 11, 2020 1:24 PM
> To: dev@dpdk.org
> Cc: Xing, Beilei <beilei.xing@intel.com>; Guo, Jia <jia.guo@intel.com>; Sun,
> GuinanX <guinanx.sun@intel.com>
> Subject: [dpdk-dev] [PATCH] net/i40e: enable port filter by switch filter
>
> This patch enables the filter that supports to create following two rules for the
> same packet type:
> One is to select source port only as input set and the other is for destination
> port only.
>
> Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
> ---
> doc/guides/rel_notes/release_20_08.rst | 7 +
> drivers/net/i40e/i40e_ethdev.c | 195 ++++++++++++++++++++-
> drivers/net/i40e/i40e_ethdev.h | 17 ++
> drivers/net/i40e/i40e_flow.c | 223
> +++++++++++++++++++++++++
> 4 files changed, 441 insertions(+), 1 deletion(-)
>
> diff --git a/doc/guides/rel_notes/release_20_08.rst
> b/doc/guides/rel_notes/release_20_08.rst
> index 7a67c960c..16870100d 100644
> --- a/doc/guides/rel_notes/release_20_08.rst
> +++ b/doc/guides/rel_notes/release_20_08.rst
> @@ -68,6 +68,13 @@ New Features
>
> * Added new PMD devarg ``reclaim_mem_mode``.
>
> +* **Updated Intel i40e driver.**
> +
> + Updated i40e PMD with new features and improvements, including:
> +
> + * Added a new type of cloud filter to support the coexistence of the
> + following two rules. One selects L4 destination as input set and
> + the other one selects L4 source port.
>
> Removed Items
> -------------
> diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
> index 970a31cb2..97e6e948a 100644
> --- a/drivers/net/i40e/i40e_ethdev.c
> +++ b/drivers/net/i40e/i40e_ethdev.c
> @@ -7956,6 +7956,13 @@ i40e_dev_tunnel_filter_set(struct i40e_pf *pf,
> #define I40E_TR_GRE_KEY_MASK 0x400
> #define I40E_TR_GRE_KEY_WITH_XSUM_MASK 0x800
> #define I40E_TR_GRE_NO_KEY_MASK 0x8000
> +#define I40E_AQC_REPLACE_CLOUD_CMD_INPUT_PORT_TR_WORD0 0x49
A confused question, this 0x49 seems to be a field vector index? Filed vector table is 128 byte long, why does this can large than 64?
> #define
> +I40E_AQC_REPLACE_CLOUD_CMD_INPUT_DIRECTION_WORD0 0x41 #define
> +I40E_AQC_REPLACE_CLOUD_CMD_INPUT_INGRESS_WORD0 0x80
> +#define I40E_DIRECTION_INGRESS_KEY 0x8000
> +#define I40E_TR_L4_TYPE_TCP 0x2
> +#define I40E_TR_L4_TYPE_UDP 0x4
> +#define I40E_TR_L4_TYPE_SCTP 0x8
>
> static enum
> i40e_status_code i40e_replace_mpls_l1_filter(struct i40e_pf *pf) @@
> -8254,6 +8261,131 @@ i40e_status_code
> i40e_replace_gtp_cloud_filter(struct i40e_pf *pf)
> return status;
next prev parent reply other threads:[~2020-06-15 6:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-11 5:24 Guinan Sun
2020-06-15 6:12 ` Zhao1, Wei [this message]
2020-06-15 6:28 ` Sun, GuinanX
2020-06-21 12:28 ` Jeff Guo
2020-06-24 3:09 ` Sun, GuinanX
2020-06-30 4:42 ` [dpdk-dev] [PATCH v2] " Guinan Sun
2020-06-30 6:15 ` Xing, Beilei
2020-07-07 6:11 ` Sun, GuinanX
2020-07-07 6:33 ` [dpdk-dev] [PATCH v3] net/i40e: support cloud filter with L4 port Guinan Sun
2020-07-07 8:15 ` Xing, Beilei
2020-07-08 3:11 ` [dpdk-dev] [PATCH v4] " Guinan Sun
2020-07-08 6:01 ` Xing, Beilei
2020-07-08 6:27 ` [dpdk-dev] [PATCH v5] " Guinan Sun
2020-07-08 7:40 ` [dpdk-dev] [PATCH v6] " Guinan Sun
2020-07-08 8:20 ` Xing, Beilei
2020-07-08 8:52 ` Zhang, Qi Z
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=MWHPR11MB1391B854A768B3C95AD0B07BB79C0@MWHPR11MB1391.namprd11.prod.outlook.com \
--to=wei.zhao1@intel.com \
--cc=beilei.xing@intel.com \
--cc=dev@dpdk.org \
--cc=guinanx.sun@intel.com \
--cc=jia.guo@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).