Received: by 10.213.65.68 with SMTP id h4csp1429017imn; Thu, 29 Mar 2018 04:45:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx49YyOXJAHKUDjP4vI/6Il0d5PrO7vcyJPXvp4D+41eBAA7u47aZ3gLkeAKqSQKyArJBPkeW X-Received: by 10.99.3.144 with SMTP id 138mr5320075pgd.364.1522323932877; Thu, 29 Mar 2018 04:45:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522323932; cv=none; d=google.com; s=arc-20160816; b=YbX8yfD2nnSjTpTyYLWf9D29qrxlKxR+X0ahgqj+9LqdsIk4evkSOat/3gEORut2Iu jj9SwXuMv4pezY2CiUISRH26kymgUZlGRnnCVC2B+xpMwI7IecwlVGeJ+cxk0yDk5H2A BG6fWIHNApNJffd2tho2bdzR7D9Q4Xi3veFX+6xvcASdBmJV9IzQ/uJGtCDZJ6k54XEB ksytxiquG3v1VJ7Sw8UzGZdsulw/1OEf2zFpXxYpimMlD1C0srG6UA/veyggqF/xKdSV uQZ8XaOERugDEe22UUEfq++WnvvHvJz91rKoPMtQVGqj6xJXTm7Hd/1DC3iWYb1ojXRA 0NuQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=MjgXVOvQUKGpHfAdwwqfE4xhh1rWs68EslRPlN+7x0M=; b=DVhmef3TitBw5FKNJFAsN2FknCDiU4DuZYGNYwixvRFLdKMKQG3VRB/IAPJxalvIKf /KXBwcHZvtxGtZAMe2+5MGccdNExsS2oLc7FkJtLN5C0PrXufj22KVjUy11b8QXHiZdI ewTXjZpgiFayu9AVTLTXSmGrNmQd53mgNxryYP0Q5I76FyqAzzioEhONwISHxlVFB5nr 2GMSxTH5f3rW3OKcja+8UWTUmCFZ4R507KG/8/qBqA1Uje7h9WbLi9ciSFumfFV3VpZV mn8fLhCuRbH5FKpc33FwZ9gKkEJLqSrSoM47C+8sR2xBhVteHfHZs+M51ib3wWRXg1Hu Kpcg== 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 x4-v6si5571615plw.354.2018.03.29.04.45.19; Thu, 29 Mar 2018 04:45:32 -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 S1753296AbeC2LnE (ORCPT + 99 others); Thu, 29 Mar 2018 07:43:04 -0400 Received: from mail.bootlin.com ([62.4.15.54]:37987 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752892AbeC2LnB (ORCPT ); Thu, 29 Mar 2018 07:43:01 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id DF4BF2082C; Thu, 29 Mar 2018 13:42:59 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from windsurf (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id A5EA4206FB; Thu, 29 Mar 2018 13:42:59 +0200 (CEST) Date: Thu, 29 Mar 2018 13:42:59 +0200 From: Thomas Petazzoni To: Jisheng Zhang Cc: David Miller , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] net: mvneta: split rxq/txq init into SW and HW parts Message-ID: <20180329134259.3fe6165b@windsurf> In-Reply-To: <20180329181356.6489ee2e@xhacker.debian> References: <20180329181220.61d63c92@xhacker.debian> <20180329181356.6489ee2e@xhacker.debian> Organization: Bootlin (formerly Free Electrons) X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Thu, 29 Mar 2018 18:13:56 +0800, Jisheng Zhang wrote: > This is to prepare the suspend/resume improvement in next patch. The > SW parts can be optimized out during resume. > > Signed-off-by: Jisheng Zhang Thanks, I have two very minor nits below, but otherwise: Acked-by: Thomas Petazzoni > +/* Create a specified RX queue */ > +static int mvneta_rxq_init(struct mvneta_port *pp, > + struct mvneta_rx_queue *rxq) > + > +{ > + int ret; > + > + ret = mvneta_rxq_sw_init(pp, rxq); > + if (ret) Here you're testing if (ret), while in mvneta_txq_init(), in the same situation, you're doing if (ret < 0). I don't have a preference for one or the other, but having them consistent between the two lpaces would be nice. > -/* Create and initialize a tx queue */ > -static int mvneta_txq_init(struct mvneta_port *pp, > - struct mvneta_tx_queue *txq) > +static int mvneta_txq_sw_init(struct mvneta_port *pp, > + struct mvneta_tx_queue *txq) > { > int cpu; > > @@ -2872,7 +2889,6 @@ static int mvneta_txq_init(struct mvneta_port *pp, > txq->tx_stop_threshold = txq->size - MVNETA_MAX_SKB_DESCS; > txq->tx_wake_threshold = txq->tx_stop_threshold / 2; > > - Spurious change. Thanks! Thomas Petazzoni -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com