Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp916892lqj; Mon, 3 Jun 2024 05:08:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWS/N4Dq5dBrL7KRMSyPQbG6P89IJbHPFoih+Nh0hz6p61sz+zI9foC+syMyk+YtL+t/W59zb1E90Iv+ebsjAQYsuAsBtE6NgibUeQjpQ== X-Google-Smtp-Source: AGHT+IHNjnTTgv/uHV5jiZjvYT74m9MIIGxjqQnx8dR6BT9mlwLohEUW/hnRnZEoJ7pVn0gifnDv X-Received: by 2002:a05:6871:5ce:b0:24f:f566:644f with SMTP id 586e51a60fabf-2508bc1e7fcmr9432840fac.41.1717416530012; Mon, 03 Jun 2024 05:08:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717416529; cv=pass; d=google.com; s=arc-20160816; b=uhJQuXNqgAUYwn9JZ3Clkhcl5zXznqk2cIS6SZeIv/2gMbhMdobrb04TmS8+8qLCYL Y9ZTIUGILjEIKL6WSrmTEEpwwXcvMycV49O9LnYB3I6RYCBtDVA52vF8SJOb655hjwN3 lwZ7HnD/Jvt0A200kxMBr6uRd7MELx4daEMTmKJrPFgsqzCX3N+QaSWWNBarpQDfccts bi5n4n1W2rOSyV69B/GPzhWufCtmL38drYYdRxtNVQivUZSruHTWnBRjZJbq0muxOHbO gvbrP590Morls89rrj9BLKTkjsDi4NWUuR52zmzYbNf7uZIu8mVCEa3Sv0pM6hxGUWC8 VIIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Mj15iBkPcOXSdEXn8i+qIN6PxJM8lggiNkxx8mjfX1M=; fh=+fXsmm2QqyuVYOZolNQ9AeaiW0PkJUq0Kq0nd9+Prv4=; b=VkB6WjIKPcZfPvnDTVZmWVpH+KNRWPR7snIq+zPg6OPBaCW12S5FO1Wv4TPMeUuow0 PIgYT+F0ytbFdSLQWneahU+0SHtFLg/14WCe73u1GChKYSzogLYsYNNvV6cqcHbSjfDm BK5meIamNajwy1NFF3yAO9b8ohThrewKW44/zpMry048rA9v0hDRjR6J0j3d/3iJ3rk+ m01YSTCkA2+MNcEzzvkoDEZ6X+USh8WZG13QpAL7rbphbFeKz9SeF/J8aniZV5yVOJCu R3417xgTZ9F04D0hZ/uQzVIH4N9SF97Xe2fj3PjLO6ptLgdhZxpqmaVfe/2vLx4/2A54 d7QQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eK8gc9go; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199081-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794f32c2a48si919220385a.772.2024.06.03.05.08.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:08:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199081-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eK8gc9go; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199081-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 51CA01C2388E for ; Mon, 3 Jun 2024 12:08:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 512F8127E04; Mon, 3 Jun 2024 12:08:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eK8gc9go" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74BB6127B57; Mon, 3 Jun 2024 12:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717416482; cv=none; b=F54+rcxBuzwX1NliwRTmaHKPZbYxnsZ4DWpWv/4/NaL8exohp+yg34fPVpwa3ztNSiSlpc093DALAwLuQDYioq+RwHamAqimce8VQXeI/qL3qtPI1tuS2JsxbpA+CmVoszMYnaAqwDIr0PfPbpUQOqj3BwJTEeJV/OzNeDHKmQ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717416482; c=relaxed/simple; bh=t/kiuL7yysUaDv9h6Ko6pozdzy1YUywrInZQqgLCv44=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iwfCWFKjHRarUOt6C+900sReiM4WRwhyCbd88Pc7yJt+5HV7GGEpTnt/OeWt2nOMfEYt39PVtZZMbPGsv0bzNXKeZax3xGPxy90pxT380d7RV0ChNHhBOMum9R1IZVrzgMlzUwk2efxb/tiHLQHXAXajMs6gzrigbd3dEZX596c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eK8gc9go; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5A04C32789; Mon, 3 Jun 2024 12:07:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717416482; bh=t/kiuL7yysUaDv9h6Ko6pozdzy1YUywrInZQqgLCv44=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eK8gc9gom/rDp6a2ivWGEmPiZvktpCzm9yLbvH/8D3YAGF/LO5lCUbTvHL0Mn8vYH vwC1mJnH5RaW9eaGocojBeBWvnDCCxcuMLJ0vBCVnY3ZdPUR9j9gq4du2znJsey57/ 78IpPvjHjnlfABGh8mBVN/HcSbaVOcjP0b5ZqtezJze0cJIlMRZSbjxRh2GsdK70yy sug3kyCGOBIMks0HnU8/u5A+QQoo33ESTsL/x7Vbunq4aJMOZMTQqS4Ww6ENO7YLQ+ kRNvR3sNNYwKDUpCSF91VjnGDC1+OliSl+R6dXzfxLjb0XaVnaZA4j/Kvz8d4rRjf4 zV1ukoFOwLe0Q== Date: Mon, 3 Jun 2024 13:07:57 +0100 From: Simon Horman To: Paul Barker Cc: Sergey Shtylyov , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Niklas =?utf-8?Q?S=C3=B6derlund?= , Biju Das , Claudiu Beznea , Yoshihiro Shimoda , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next PATCH v4 7/7] net: ravb: Allocate RX buffers via page pool Message-ID: <20240603120757.GX491852@kernel.org> References: <20240528150339.6791-1-paul.barker.ct@bp.renesas.com> <20240528150339.6791-8-paul.barker.ct@bp.renesas.com> <20240601101300.GA491852@kernel.org> <6165a9a3-15ec-4a40-901a-17c2be64daf1@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6165a9a3-15ec-4a40-901a-17c2be64daf1@bp.renesas.com> On Mon, Jun 03, 2024 at 09:02:51AM +0100, Paul Barker wrote: > On 01/06/2024 11:13, Simon Horman wrote: > > On Tue, May 28, 2024 at 04:03:39PM +0100, Paul Barker wrote: ... > >> @@ -298,13 +269,14 @@ static void ravb_ring_free(struct net_device *ndev, int q) > >> priv->tx_ring[q] = NULL; > >> } > >> > >> - /* Free RX skb ringbuffer */ > >> - if (priv->rx_skb[q]) { > >> - for (i = 0; i < priv->num_rx_ring[q]; i++) > >> - dev_kfree_skb(priv->rx_skb[q][i]); > >> + /* Free RX buffers */ > >> + for (i = 0; i < priv->num_rx_ring[q]; i++) { > >> + if (priv->rx_buffers[q][i].page) > >> + page_pool_put_page(priv->rx_pool[q], priv->rx_buffers[q][i].page, 0, true); > > > > nit: Networking still prefers code to be 80 columns wide or less. > > It looks like that can be trivially achieved here. > > > > Flagged by checkpatch.pl --max-line-length=80 > > Sergey has asked me to wrap to 100 cols [1]. I can only find a reference > to 80 in the docs though [2], so I guess you may be right. > > [1]: https://lore.kernel.org/all/611a49b8-ecdb-6b91-9d3e-262bf3851f5b@omp.ru/ > [2]: https://www.kernel.org/doc/html/latest/process/coding-style.html Hi Paul, If Sergey prefers 100 then I won't argue :) FWIIW, think what has happened here relates to the Kernel, at some point, going from 80 to 100 columns as the preferred maximum width, while Networking stuck with 80. ...