From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 24BC32901 for ; Thu, 18 May 2017 11:15:05 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP; 18 May 2017 02:15:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,358,1491289200"; d="scan'208";a="970055570" Received: from kmsmsx154.gar.corp.intel.com ([172.21.73.14]) by orsmga003.jf.intel.com with ESMTP; 18 May 2017 02:15:04 -0700 Received: from pgsmsx101.gar.corp.intel.com ([169.254.1.174]) by KMSMSX154.gar.corp.intel.com ([169.254.12.233]) with mapi id 14.03.0319.002; Thu, 18 May 2017 17:14:42 +0800 From: "Zhao1, Wei" To: "Xing, Beilei" , "adrien.mazarguil@6wind.com" CC: "dev@dpdk.org" Thread-Topic: [PATCH] app/testpmd: add TCP flags in flow API Thread-Index: AQHSz7Z+8QDawd2L30We6UfWk9M68qH5zg6w Date: Thu, 18 May 2017 09:14:42 +0000 Message-ID: References: <1495098372-18438-1-git-send-email-beilei.xing@intel.com> In-Reply-To: <1495098372-18438-1-git-send-email-beilei.xing@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] app/testpmd: add TCP flags in flow API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2017 09:15:06 -0000 Test that patch use flow API of igb NIC syn filter, it is ok. =20 Acked-by: Wei Zhao > -----Original Message----- > From: Xing, Beilei > Sent: Thursday, May 18, 2017 5:06 PM > To: adrien.mazarguil@6wind.com > Cc: dev@dpdk.org; Zhao1, Wei > Subject: [PATCH] app/testpmd: add TCP flags in flow API >=20 > This commit adds TCP flags support in flow API as some drivers have SYN > filter. >=20 > Signed-off-by: Beilei Xing > --- > app/test-pmd/cmdline_flow.c | 9 +++++++++ > 1 file changed, 9 insertions(+) >=20 > 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[] =3D { static cons= t > enum index item_tcp[] =3D { > ITEM_TCP_SRC, > ITEM_TCP_DST, > + ITEM_TCP_FLAGS, > ITEM_NEXT, > ZERO, > }; > @@ -1267,6 +1269,13 @@ static const struct token token_list[] =3D { > .args =3D ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_tcp, > hdr.dst_port)), > }, > + [ITEM_TCP_FLAGS] =3D { > + .name =3D "flags", > + .help =3D "TCP flags", > + .next =3D NEXT(item_tcp, NEXT_ENTRY(UNSIGNED), > item_param), > + .args =3D ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_tcp, > + hdr.tcp_flags)), > + }, > [ITEM_SCTP] =3D { > .name =3D "sctp", > .help =3D "match SCTP header", > -- > 2.5.5