From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Wang Subject: Re: [Patch net 5/5] net_sched: convert tcf_exts from list to flex_array Date: Tue, 9 Aug 2016 11:02:08 -0700 Message-ID: References: <1470689209-17682-1-git-send-email-xiyou.wangcong@gmail.com> <1470689209-17682-6-git-send-email-xiyou.wangcong@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: netdev , Jamal Hadi Salim To: Amir Vadai Return-path: Received: from mail-io0-f173.google.com ([209.85.223.173]:36632 "EHLO mail-io0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932257AbcHISCa (ORCPT ); Tue, 9 Aug 2016 14:02:30 -0400 Received: by mail-io0-f173.google.com with SMTP id b62so18965709iod.3 for ; Tue, 09 Aug 2016 11:02:30 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Aug 9, 2016 at 1:03 AM, Amir Vadai wrote: > >> -#define tc_single_action(_exts) \ >> - (list_is_singular(&(_exts)->actions)) >> +#define tc_no_actions(_exts) (&(_exts)->nr_actions == 0) >> +#define tc_single_action(_exts) (&(_exts)->nr_actions == 1) > > Should remove the '&' here. Good catch! I even didn't notice the '&' there. :-/ I will wait for Jamal's comments before sending v2. Thanks.