From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [patch net-next 04/20] net: sched: use tcf_exts_has_actions in tcf_exts_exec Date: Mon, 31 Jul 2017 08:36:13 +0200 Message-ID: <20170731063613.GA1883@nanopsycho> References: <20170728144042.6380-1-jiri@resnulli.us> <20170728144042.6380-5-jiri@resnulli.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, davem@davemloft.net, xiyou.wangcong@gmail.com, daniel@iogearbox.net, mlxsw@mellanox.com To: Jamal Hadi Salim Return-path: Received: from mail-wr0-f193.google.com ([209.85.128.193]:32893 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954AbdGaGgQ (ORCPT ); Mon, 31 Jul 2017 02:36:16 -0400 Received: by mail-wr0-f193.google.com with SMTP id y43so30681545wrd.0 for ; Sun, 30 Jul 2017 23:36:16 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Sun, Jul 30, 2017 at 09:48:24PM CEST, jhs@mojatatu.com wrote: >I am probably missing something. All those changes to just >replace "if (exts->nr_actions)" with "if (tcf_exts_has_actions(exts))" ? That is what the description says :) > >cheers, >jamal > >On 17-07-28 10:40 AM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> Use the tcf_exts_has_actions helper instead or directly testing >> exts->nr_actions in tcf_exts_exec. >> >> Signed-off-by: Jiri Pirko