Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp20689ybl; Tue, 27 Aug 2019 15:04:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqynn5FMqkGpPLoujrCNhb3ve3xZAIZ7NxNuKBorq1KFa0qDUS93EicI15L0NYp1lOAnmmO6 X-Received: by 2002:a62:76d5:: with SMTP id r204mr811338pfc.252.1566943480392; Tue, 27 Aug 2019 15:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566943480; cv=none; d=google.com; s=arc-20160816; b=OkqGwZXgTiax5uExRBi8P4WrtbjX8/jsNhMy/N1jEAszg8P05HoFGoFJqimjbCHSrN 0q/fvbJLgomOx0lRELwz5dG11GLM7hxfXkPbdZziCmzp8Zi+9YBep0hqPuvEgrYULRD9 i424laVTFTcTK8BYBDZCylG3V0CfNfTi9k47YEsOm4Ym9XsUuE/KPDeZ/XvHnIJ4WDyD t9wp8KFKl2trlEuu12E9Ac6Zk4aXrrENzCm8mfdmrc/kzuOs406LxsYDQv78vjf47Xg5 RqQlxSjxhCYnPFf9yG8Tm2+sclM4F092RclC/BDk5kJCSs0aEirfVY3CFhmBUSjs3qYW xuMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=u6OJCItyrTO/ik6uftxigmHq4+E+sgTeB/iyVP4FPr8=; b=rDhA/4QwGRe/un++RqXMXQgR8k2HtQVxAGkYSb/DzmYB3+mwE5eXyB2UdVKXoYxKe0 A61cgDEJPhhrhkqDZGpPCkRq8I2+fBYmCZ+yPjHt8lAtcSxoZdXWw5sAaaxWKX7PxSL4 QlWiAJZTjQJHWrkS4YabU3ONBkItAxrgpcHoAxb6Ew+BPTON77qMQxuMelhX2sJaGRJ0 AuegeFiN+n1UOk5CPnkRvdbP7ikm74yj7ctoXb5KX0mgKdqYiKR9+0CVb/L+eDpwa6Ff V/2+jUUczFucew8UnD3r5zRbgdYhKhodXplhiAL6+Qj/5qBn7hfGEKDes5FKylauBCmC ERmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r33si477808pgm.371.2019.08.27.15.04.22; Tue, 27 Aug 2019 15:04:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726227AbfH0WDV (ORCPT + 99 others); Tue, 27 Aug 2019 18:03:21 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:51358 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbfH0WDU (ORCPT ); Tue, 27 Aug 2019 18:03:20 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id B0EF915363D58; Tue, 27 Aug 2019 15:03:19 -0700 (PDT) Date: Tue, 27 Aug 2019 15:03:19 -0700 (PDT) Message-Id: <20190827.150319.716294283021335199.davem@davemloft.net> To: olivier.tilmans@nokia-bell-labs.com Cc: eric.dumazet@gmail.com, stephen@networkplumber.org, olga@albisser.org, koen.de_schepper@nokia-bell-labs.com, research@bobbriscoe.net, henrist@henrist.net, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v5] sched: Add dualpi2 qdisc From: David Miller In-Reply-To: <20190822080045.27609-1-olivier.tilmans@nokia-bell-labs.com> References: <20190822080045.27609-1-olivier.tilmans@nokia-bell-labs.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 27 Aug 2019 15:03:20 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Tilmans, Olivier (Nokia - BE/Antwerp)" Date: Thu, 22 Aug 2019 08:10:48 +0000 > +static inline struct dualpi2_skb_cb *dualpi2_skb_cb(struct sk_buff *skb) Please do not use the inline keyword in foo.c files, let the compiler decide. > +static struct sk_buff *dualpi2_qdisc_dequeue(struct Qdisc *sch) > +{ > + struct dualpi2_sched_data *q = qdisc_priv(sch); > + struct sk_buff *skb; > + int qlen_c, credit_change; Reverse christmas tree here, please. > +static void dualpi2_timer(struct timer_list *timer) > +{ > + struct dualpi2_sched_data *q = from_timer(q, timer, pi2.timer); > + struct Qdisc *sch = q->sch; > + spinlock_t *root_lock; /* Lock to access the head of both queues. */ Likewise, and please remove this comment it makes the variable declarations look odd.