Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp590476lqp; Sat, 13 Apr 2024 09:51:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkyEtonA0HTC9YOVpRFpYnlR8YJrxWMDUG6IvseBhbAvr2Lw4A5xUsK6GT3mUetfwN1kScr8702Iy5i/g1EuvD5nFOI3KCvLEDO7xTpQ== X-Google-Smtp-Source: AGHT+IH8r43quZv7e4g5JW6r+UM4YNoi2UX1UOQQq1eR6Ms82/2WqrwWpMQAqrThNdrQqR1lE5r7 X-Received: by 2002:a05:6a21:3286:b0:1a9:7ad8:79f with SMTP id yt6-20020a056a21328600b001a97ad8079fmr6448134pzb.13.1713027075129; Sat, 13 Apr 2024 09:51:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713027075; cv=pass; d=google.com; s=arc-20160816; b=KwK+SyFPPe8AZ6OghmfQFpx7PnNO6l76XNtzSIA48XS8JI5IxtBpcP3M7DCPjFEaB4 7vDcBLXM8nE74Z+DUzePvwoI3iq9Wrfe7WeEVgWaq35r32wSN+ehdIgFmiGMi+3Lz8So MhyW6mFsfXgKaVCo06B+qhasLy5s3glWChIi1dYurIEDQslyCEbd645LR8Wn4NGpkXms 2SOE0BFDTneyoH7aJRg1lwrTdlNxLhm9wXNc/HyZvDxDfnl4DR3z80JPrAG3/O2sy5mk O7JOpKH5WUss0iiMk37lkjSR5hQxgRXsa73R2qfp4Iu9MGb7QN+tSoGU96Ebb3Bn3wIv EQgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=UsBSTb4NxMDrGSfJQ0jahRHflEOfZ8SSUX/pdHUNMjw=; fh=becOmD68v09pRQLZGEoeyGFbU7HSUa4utYFHwmQLCXc=; b=xMmAOxdA7EUX25v2TXuYnyekn6ynecRzGR7sgdDlbcjammNBYM8kbD6cxqJCMQJHXQ FyU1p4jDkftbBf5GasgW/nXrJVFAbWDJ/WEY64ds6SifjdiSGqmmKym4z/G9fqG2OXuS XtsRntk1ecZ6971zYw1gfLnmaZQX0cHs0CD0/QrnSLoAw7ebUmJVlu8HcpmUuf7XdYyd dByvV2QQyg+jOdXgIFZxDX9WQaL+4yDQJbseWqXQIkTZGh+SBjvh6ZdZ85YhzOQOPzjD 2CcxDrZilCidroUb636A7RSVxejyWGEZqNyVTrwpOd6h03H9jZgGojPgLJ8MOfKZsGAO 87Lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iNjCDD3g; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q36-20020a631f64000000b005dc3e746573si5228628pgm.826.2024.04.13.09.51.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 09:51:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iNjCDD3g; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143813-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BBC55B213BB for ; Sat, 13 Apr 2024 16:51:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B153E45C1C; Sat, 13 Apr 2024 16:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iNjCDD3g" 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 D7B341DFF8; Sat, 13 Apr 2024 16:51:01 +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=1713027061; cv=none; b=V7T5JfBj/dqKgVE9F0sq+9WR6SS4cpOcOTyanqXOhhmrwXzyxitXA2RLEPi7q3Ugosx80dsCRNyDhKF0xyw8nCyjFM6lv2s0Qx4yn9zk1X7d78/7L2Hrqk7YN1D6Poz63EZ1RzZr+ITe74evF3CV0gpEpMB5bIXbk1669ueqPbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713027061; c=relaxed/simple; bh=fCXK9vlYjjkxqPAsWTH2wUnB688CYxdjVJy2JRxr+kc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=V44/s5b+FKTbZvspUrWaO4iTIRmKJPRp62Vi1KXYUwBDhqPkI1eiramuUFvK3yF5QcY4WEtUYKPWUpcJNAcbB+b4iEVvHlV8hg/8/2UfOVLLT96zxFA7dt7IVHCu64RylzE2WIrzjTEVUx2LAAho9WaUtxuFoJtkHYAAdTbPzG4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iNjCDD3g; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5211C113CD; Sat, 13 Apr 2024 16:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713027061; bh=fCXK9vlYjjkxqPAsWTH2wUnB688CYxdjVJy2JRxr+kc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=iNjCDD3gltr0hfad/DIZEFkWHMoSVpSzXTS8PtpfKh+HjPsqfAtTX8/8Oh0aBa8T/ 4Hj4Qk2kOShrOKTg9wBs5UJWw8Nh8RlDJDDRiwBaUVX8UN+LdhT7JGrfWKZ6W9jnkD 8I+mzIUNxXUK2Qps+t4zSX7peS1DYpc1qlfzMM297vZVRDOWPnL/KuamAUJ/TtTx7t 1mYIHKqHenXJaXe+tq1jxwV0Oo9wHYDZmbYPGmchzWlsXs0dp4xi/8UENnGCJ+4Fr0 w1g8kIm8j4QE+trAN9hg6b6A5m0bB7/5nn7T6K/GRpaMsZXkVqDpde1oTgLKLTa5SH YZVWMrJiwwTjw== Message-ID: Date: Sat, 13 Apr 2024 10:50:59 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 1/2] net: ipv6_gre: Do not use custom stat allocator Content-Language: en-US To: Breno Leitao , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horms@kernel.org References: <20240412151928.2895993-1-leitao@debian.org> From: David Ahern In-Reply-To: <20240412151928.2895993-1-leitao@debian.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/12/24 9:19 AM, Breno Leitao wrote: > With commit 34d21de99cea9 ("net: Move {l,t,d}stats allocation to core and > convert veth & vrf"), stats allocation could be done on net core > instead of in this driver. > > With this new approach, the driver doesn't have to bother with error > handling (allocation failure checking, making sure free happens in the > right spot, etc). This is core responsibility now. > > Remove the allocation in the ip6_gre and leverage the network > core allocation instead. > > Signed-off-by: Breno Leitao > --- > net/ipv6/ip6_gre.c | 22 +++++----------------- > 1 file changed, 5 insertions(+), 17 deletions(-) > Reviewed-by: David Ahern