Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4173878ybl; Tue, 21 Jan 2020 14:25:36 -0800 (PST) X-Google-Smtp-Source: APXvYqzpNypfFvg4IGc01xhorpx1l9rc68o+NcqSmnDNQLwlMnUvR3czckyQlBlyNLZh3RHDPBRI X-Received: by 2002:a05:6808:1c6:: with SMTP id x6mr4695638oic.49.1579645535911; Tue, 21 Jan 2020 14:25:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579645535; cv=none; d=google.com; s=arc-20160816; b=SRnUGwlbdcOlRx70MB6sqZY74xOJ5A57qRom7EPMVDjNBkVfQZuUVsKtNGxud4AX/m GaidJ4TRkmzlSGHAIPgGWqfCnrJK8rViyFX8gvdrXoCpmPMjoRcnDIlv3+BZtE/hDvbo shttVRpuGxWnxrCdp7bxnOuio1I85ayTPUQLXbJKkcTnY6agaSl2zURUE/TA+BTB0ocf S11zKlU5qb/U9fhIVSZej8A5pbWBvNzX57iTN9CtzhGh23CJWS9p85edrEVdyUjNrwIR jvsrOuPLzHxbj5P8crRQf6tAz0KufU6z9PYe5XETMMaAcFjchxX5JUUizYoXfnZdzXNH 7MbQ== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=U7zoLTLkT4FRPpbHEk3PRh1Uf6zx0h1ZbdETeYpzu34=; b=LFhBC7iTVVadJxA8etHB+LMAuPKiFG/JJHvnYy37ykVzdhDjF4NSXGhPShk9DLxF1n c/8ArIZOPbtKo6p4WOt54ki3+Qhgxc0f8m4QKJwsLmocD+qBft2ewa83N/JLMgZng54H XuQAD8coAk5Dibi154I5JOHChrAGxH8J4TMS/dTu8aMrZoS/VPJ2pmxPEqT9JGtcPoK7 jGIex7IxK7yTthlOUTfxTkLsTLc5khSCzpQi1AecoW5mbujWnB7KcBxf3mFcjoRsARb8 eDoSokoorhHKzTdgoUzTwcfO4IacXRro7jrAEmM7TBhU0oQRlQKksbDeR7+RC28w4C8H 3Q5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="TcBR/Nf2"; 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 w23si22158691otp.109.2020.01.21.14.25.23; Tue, 21 Jan 2020 14:25:35 -0800 (PST) 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; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="TcBR/Nf2"; 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 S1729187AbgAUWYG (ORCPT + 99 others); Tue, 21 Jan 2020 17:24:06 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39965 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728760AbgAUWYG (ORCPT ); Tue, 21 Jan 2020 17:24:06 -0500 Received: by mail-pg1-f195.google.com with SMTP id k25so2282425pgt.7 for ; Tue, 21 Jan 2020 14:24:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=U7zoLTLkT4FRPpbHEk3PRh1Uf6zx0h1ZbdETeYpzu34=; b=TcBR/Nf2zex+WbZ+HvpriATJYWG4FdY9xDweikRmWGBtS4CZWv+47/bDt+CV5kKSi/ 7DSXjX6aud5eUmJw6QY+3Dz+Qzi3NTDKWBy4GnOBntx+OSzLgazoHkj8FkcERZvTUjuN /gppPWa1GyFKqoKWtsrQ/CvofmKJ55cLzTQOhDoWg0COxDk8WU3a7bBZzB8XRaN804mA Xrk+ned0WqoIQPjbhjULXTb1RCc8mhxES3BiKJf6FkfLafVEu/9soQBGmquOIoS82oWw dPcbta7hsRaIov7t9aoK82lteJRv8BmlPgw2njwJOUGQ/SzMHEyuyMIuZhbZ3blAnYjo OSaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=U7zoLTLkT4FRPpbHEk3PRh1Uf6zx0h1ZbdETeYpzu34=; b=K+8bmGXjLPZQjSDInfELI5rumJAh07luAfWxCZAkXd5PH5vuC0U2rKvAqjMEdh1IRI EA+OiDzAHs1mVH1a+q1FjbayFSO+rp+wbHGBv/xd66l02TieyO4eewRYm5GG1lmlUtBq cm9OBSs77bvZCgQludt4fmGhvDl7LPRZnvDrcu5UW4Gzoi/QU0xtPt6i+RH+cMmRdkXz tziq6aSJHOhEsQrEmlbEdbYv2QMfKcPGWkF+NN7A99n0lNLachO9tWDHIleEw1TKo4kV PVNPkyhFJkCXRCiPIdla+fmzC5xlaOPQZ9S9IjMAYOLQRpGBouTQKQ/fgdsgzUHEBFXg 7dkQ== X-Gm-Message-State: APjAAAXv4WHPm1Q1ZpmfJsHkackVhNDJr8D07TGIFxF+KVJgzb3G6X8X sinsvgrDMMCra3tuwsLeTIlnwA== X-Received: by 2002:a63:5243:: with SMTP id s3mr7416825pgl.449.1579645445908; Tue, 21 Jan 2020 14:24:05 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id u128sm44956335pfu.60.2020.01.21.14.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 14:24:05 -0800 (PST) Date: Tue, 21 Jan 2020 14:23:56 -0800 From: Stephen Hemminger To: Finn Thain Cc: "David S. Miller" , Thomas Bogendoerfer , Chris Zankel , Laurent Vivier , Geert Uytterhoeven , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v2 05/12] net/sonic: Fix receive buffer handling Message-ID: <20200121142356.2b17ad74@hermes.lan> In-Reply-To: References: 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 On Wed, 22 Jan 2020 08:22:08 +1100 Finn Thain wrote: > > +/* Return the array index corresponding to a given Receive Buffer pointer. */ > + > +static inline int index_from_addr(struct sonic_local *lp, dma_addr_t addr, > + unsigned int last) Why the blank line between comment and the start of the function? Also, the kernel standard is not to use the inline keyword on functions and let the compiler decide to inline if it wants to. The compiler is much smarter at knowing the architectural limitations than humans are.