DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Zhao1, Wei" <wei.zhao1@intel.com>
To: "Xing, Beilei" <beilei.xing@intel.com>,
	"adrien.mazarguil@6wind.com" <adrien.mazarguil@6wind.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] app/testpmd: add TCP flags in flow API
Date: Thu, 18 May 2017 09:14:42 +0000	[thread overview]
Message-ID: <A2573D2ACFCADC41BB3BE09C6DE313CA07B6E42A@PGSMSX101.gar.corp.intel.com> (raw)
In-Reply-To: <1495098372-18438-1-git-send-email-beilei.xing@intel.com>

Test that patch use flow API of igb NIC syn filter, it is ok.
 
Acked-by: Wei Zhao <wei.zhao1@intel.com>

> -----Original Message-----
> From: Xing, Beilei
> Sent: Thursday, May 18, 2017 5:06 PM
> To: adrien.mazarguil@6wind.com
> Cc: dev@dpdk.org; Zhao1, Wei <wei.zhao1@intel.com>
> Subject: [PATCH] app/testpmd: add TCP flags in flow API
> 
> This commit adds TCP flags support in flow API as some drivers have SYN
> filter.
> 
> Signed-off-by: Beilei Xing <beilei.xing@intel.com>
> ---
>  app/test-pmd/cmdline_flow.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
> index 0fd69f9..3e5803a 100644
> --- a/app/test-pmd/cmdline_flow.c
> +++ b/app/test-pmd/cmdline_flow.c
> @@ -152,6 +152,7 @@ enum index {
>  	ITEM_TCP,
>  	ITEM_TCP_SRC,
>  	ITEM_TCP_DST,
> +	ITEM_TCP_FLAGS,
>  	ITEM_SCTP,
>  	ITEM_SCTP_SRC,
>  	ITEM_SCTP_DST,
> @@ -531,6 +532,7 @@ static const enum index item_udp[] = {  static const
> enum index item_tcp[] = {
>  	ITEM_TCP_SRC,
>  	ITEM_TCP_DST,
> +	ITEM_TCP_FLAGS,
>  	ITEM_NEXT,
>  	ZERO,
>  };
> @@ -1267,6 +1269,13 @@ static const struct token token_list[] = {
>  		.args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_tcp,
>  					     hdr.dst_port)),
>  	},
> +	[ITEM_TCP_FLAGS] = {
> +		.name = "flags",
> +		.help = "TCP flags",
> +		.next = NEXT(item_tcp, NEXT_ENTRY(UNSIGNED),
> item_param),
> +		.args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_tcp,
> +					     hdr.tcp_flags)),
> +	},
>  	[ITEM_SCTP] = {
>  		.name = "sctp",
>  		.help = "match SCTP header",
> --
> 2.5.5

  reply	other threads:[~2017-05-18  9:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18  9:06 Beilei Xing
2017-05-18  9:14 ` Zhao1, Wei [this message]
2017-06-08 21:10   ` Thomas Monjalon
2017-05-18  9:22 ` Adrien Mazarguil
2017-06-08 21:13   ` Thomas Monjalon

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=A2573D2ACFCADC41BB3BE09C6DE313CA07B6E42A@PGSMSX101.gar.corp.intel.com \
    --to=wei.zhao1@intel.com \
    --cc=adrien.mazarguil@6wind.com \
    --cc=beilei.xing@intel.com \
    --cc=dev@dpdk.org \
    /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).