From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id DC723F612 for ; Wed, 11 Jan 2017 10:11:20 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 11 Jan 2017 01:11:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,345,1477983600"; d="scan'208";a="1110972386" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by fmsmga002.fm.intel.com with ESMTP; 11 Jan 2017 01:11:19 -0800 Received: from pgsmsx103.gar.corp.intel.com ([169.254.2.52]) by KMSMSX151.gar.corp.intel.com ([169.254.10.189]) with mapi id 14.03.0248.002; Wed, 11 Jan 2017 17:11:17 +0800 From: "Zhao1, Wei" To: "Yigit, Ferruh" , "dev@dpdk.org" CC: "Lu, Wenzhuo" Thread-Topic: [dpdk-dev] [PATCH v2 13/18] net/ixgbe: parse TCP SYN filter Thread-Index: AQHSYnKH4yh16ev2w0uyatD+dlddgqErNyKAgAfZCRA= Date: Wed, 11 Jan 2017 09:11:16 +0000 Message-ID: References: <1483084390-53159-1-git-send-email-wei.zhao1@intel.com> <1483084390-53159-14-git-send-email-wei.zhao1@intel.com> <8c0dd569-43e5-8b8c-d411-aef2be616e03@intel.com> In-Reply-To: <8c0dd569-43e5-8b8c-d411-aef2be616e03@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.30.20.205] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 13/18] net/ixgbe: parse TCP SYN filter 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: Wed, 11 Jan 2017 09:11:21 -0000 HI, yigit=20 > -----Original Message----- > From: Yigit, Ferruh > Sent: Saturday, January 7, 2017 1:20 AM > To: Zhao1, Wei ; dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: Re: [dpdk-dev] [PATCH v2 13/18] net/ixgbe: parse TCP SYN filter >=20 > On 12/30/2016 7:53 AM, Wei Zhao wrote: > > check if the rule is a TCP SYN rule, and get the SYN info. > > > > Signed-off-by: Wei Zhao > > Signed-off-by: Wenzhuo Lu > > > > --- > > > > v2:add new error set function > > --- >=20 > <...> >=20 > > +static int > > +ixgbe_parse_syn_filter(const struct rte_flow_attr *attr, > > + const struct rte_flow_item pattern[], > > + const struct rte_flow_action actions[], > > + struct rte_eth_syn_filter *filter, > > + struct rte_flow_error *error) { > > + int ret; > > + > > + ret =3D cons_parse_syn_filter(attr, pattern, > > + actions, filter, error); > > + >=20 > > + if (ret) > > + return ret; > > + > > + return 0; >=20 > "return ret;" will do the same. > Or remove ret completely perhaps. Return 0 is the same as "return ret;", so this may be not to need change. >=20 > > +} > > + > <...>