From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id CEBF0214A for ; Fri, 6 Jan 2017 18:19:45 +0100 (CET) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP; 06 Jan 2017 09:19:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,325,1477983600"; d="scan'208";a="46351698" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.38]) ([10.237.220.38]) by orsmga004.jf.intel.com with ESMTP; 06 Jan 2017 09:19:43 -0800 To: Wei Zhao , dev@dpdk.org References: <1483084390-53159-1-git-send-email-wei.zhao1@intel.com> <1483084390-53159-14-git-send-email-wei.zhao1@intel.com> Cc: Wenzhuo Lu From: Ferruh Yigit Message-ID: <8c0dd569-43e5-8b8c-d411-aef2be616e03@intel.com> Date: Fri, 6 Jan 2017 17:19:43 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1483084390-53159-14-git-send-email-wei.zhao1@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit 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: Fri, 06 Jan 2017 17:19:46 -0000 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 > --- <...> > +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 = cons_parse_syn_filter(attr, pattern, > + actions, filter, error); > + > + if (ret) > + return ret; > + > + return 0; "return ret;" will do the same. Or remove ret completely perhaps. > +} > + <...>