From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH net-next,v3 04/12] cls_api: add translator to flow_action representation Date: Thu, 22 Nov 2018 00:48:16 +0100 Message-ID: <20181121234816.ennss6tgyrqq4ppr@salvia> References: <20181121025132.14305-1-pablo@netfilter.org> <20181121025132.14305-5-pablo@netfilter.org> <20181121211541.GA8353@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, davem@davemloft.net, thomas.lendacky@amd.com, f.fainelli@gmail.com, ariel.elior@cavium.com, michael.chan@broadcom.com, santosh@chelsio.com, madalin.bucur@nxp.com, yisen.zhuang@huawei.com, salil.mehta@huawei.com, jeffrey.t.kirsher@intel.com, tariqt@mellanox.com, saeedm@mellanox.com, jiri@mellanox.com, idosch@mellanox.com, jakub.kicinski@netronome.com, peppe.cavallaro@st.com, grygorii.strashko@ti.com, andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, alexandre.torgue@st.com, joabreu@synopsys.com, linux-net-drivers@solarflare.com, ganeshgr@chelsio.com, ogerlitz@mellanox.com, Manish.Chopra@cavium.com To: Marcelo Ricardo Leitner Return-path: Received: from mail.us.es ([193.147.175.20]:36344 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390659AbeKVKY5 (ORCPT ); Thu, 22 Nov 2018 05:24:57 -0500 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id B3DF31373DC for ; Thu, 22 Nov 2018 00:48:19 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id A0874DA4C8 for ; Thu, 22 Nov 2018 00:48:19 +0100 (CET) Content-Disposition: inline In-Reply-To: <20181121211541.GA8353@localhost.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Nov 21, 2018 at 07:15:41PM -0200, Marcelo Ricardo Leitner wrote: > On Wed, Nov 21, 2018 at 03:51:24AM +0100, Pablo Neira Ayuso wrote: [...] > > diff --git a/net/sched/cls_flower.c b/net/sched/cls_flower.c > > index d2971fbfc3d9..8898943b8ee6 100644 > > --- a/net/sched/cls_flower.c > > +++ b/net/sched/cls_flower.c > > @@ -382,7 +382,7 @@ static int fl_hw_replace_filter(struct tcf_proto *tp, > > bool skip_sw = tc_skip_sw(f->flags); > > int err; > > > > - cls_flower.rule = flow_rule_alloc(); > > + cls_flower.rule = flow_rule_alloc(tcf_exts_num_actions(&f->exts)); > > As previous patch did: > -struct flow_rule *flow_rule_alloc(void); > +struct flow_rule *flow_rule_alloc(unsigned int num_actions); > the build is broken without this change (bisect-ability). > (applies to similar lines too) Sorry about this, I'll fix this, thanks Marcelo.