From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2 13/18] net/ixgbe: parse TCP SYN filter Date: Fri, 6 Jan 2017 17:19:43 +0000 Message-ID: <8c0dd569-43e5-8b8c-d411-aef2be616e03@intel.com> References: <1483084390-53159-1-git-send-email-wei.zhao1@intel.com> <1483084390-53159-14-git-send-email-wei.zhao1@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: Wenzhuo Lu To: Wei Zhao , dev@dpdk.org 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) In-Reply-To: <1483084390-53159-14-git-send-email-wei.zhao1@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. > +} > + <...>