Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp273386lqs; Tue, 5 Mar 2024 01:21:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWQVxIDFnb/a+okFC0n2dMhnrCF9h+OmryRumafT9cO6b9hWVNls64ZUiF2yKx9KLUVf5pJTkLFAUA1Mnic9K9QvLKTu+zjso4ltfDGjg== X-Google-Smtp-Source: AGHT+IHyxlsWq6aeScRnY3NgozaqK4mNpKStpPsQuL/xkvbTmqokXrB67Y09hJNYCSt0etlsLvEG X-Received: by 2002:a05:6870:a107:b0:221:da5:1a4f with SMTP id m7-20020a056870a10700b002210da51a4fmr1417137oae.13.1709630465795; Tue, 05 Mar 2024 01:21:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709630465; cv=pass; d=google.com; s=arc-20160816; b=ALJkLH6f6ISvE/Wuo93tplGowz5FyXTg6q2TwdlrdiqD6uFH6FQn2LbZehLL4tOos3 hh7nh9hLQGEkwtu0GoTcRZB5iuxjrhqEILUg0U9DHTAtwkw5WmYmZXhURmjGHKiAu/7n mtfNLKaTuR4/T5Yv3oNwAFRm1uAY5n+6MAj1yP3w7dKAn2chEKaOFdVyQyqAEGlp+G8H WFDry4x/J7RRS+4SL+icyFJlypXtQLOhAA5X/CHFgloweK26Vz9pzmyrpDcABfPPWswM ZhlfkfhajQNHf1YG6v+00w7nIiKatHetq5jNqu/pa3CWt78KK7kRiNE2r0KbzY8S7VJM WI6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:references:in-reply-to :message-id:cc:to:from:date:dkim-signature; bh=PRRM/ARae3sSFkhIeSz5op1mbTEpfUsArfGcXBHTCfc=; fh=KQi5KXsqGojLWl665b6bPZBVU1Gl3XBiOGIWHRy0kgE=; b=sxY56V5wjnBip8FO/it4H3/xZSPGC4sjRzeepsIEH1PQ6dDp4yjwYPaLVZBLjNYPsI 5aJcEvysBKGYJwtEdk1482IaEmFxwGfjHa67wSf7TW6NEusB9vB3JCGcHCXMTjd4Gu3g EZDGGgEt0OyKamH2ZA7G/2U0lSkBuc1DldNJP/NJntPUNJQno7zv9bB9EPzOncxWFhDM G2ccu+MFie65uLUVzh4c+HnN266g5asCkC99tkbs20Rp8KNSarMUBkelYEfzKPT4rnct PQBgyoInyRZm6nFX1ATVMD2J0yR0w88dElakqow6LPQEKP/ktx0T3I8u9SBKIDCQQwo4 wdTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mI7zDYJ5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-91990-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id gu11-20020a056a004e4b00b006e3b0284fcbsi9654381pfb.346.2024.03.05.01.21.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 01:21:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91990-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mI7zDYJ5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-91990-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 57F1428268F for ; Tue, 5 Mar 2024 09:21:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4974052F68; Tue, 5 Mar 2024 09:20:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mI7zDYJ5" Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E49250A69; Tue, 5 Mar 2024 09:20:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709630457; cv=none; b=WF3+KAZeELpnlvcnXVUT4gl+1ouz6VJHN3cEhj7D0elVXZzhrZgXa1KiiutpbznzmnFsVlpDMYow8TMGR5LnLwiSiUG+n3gfEJu4R4kO85khQHlAphEHFE9UCEfTTfCPQ9yM95MwenKSMzDRETx/Dai2CfSf8rUNCalmC9zAgmE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709630457; c=relaxed/simple; bh=Sgyyt8kvTxLJxurki0hYZ0igZUYEyJwo/AUa81JBIM8=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: Mime-Version:Content-Type; b=S0yuh77HzGfiLbgRiX1iOEF6ocpeE0x3Uv+fgAQwFVUsy/LEwSk5DSv+5veo/Awf5L7K5PTbjM8t8CMJuU/uLxnqJD9+iD2KMWCZr1Zn8KTPosL4MBYDzqUuxjdHD+zGMPDabhzcxYfqc5Qnvhr3XBnAWPy41WwaKnx2nWT2IhI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mI7zDYJ5; arc=none smtp.client-ip=209.85.222.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-7882e94d408so120987985a.0; Tue, 05 Mar 2024 01:20:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709630455; x=1710235255; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=PRRM/ARae3sSFkhIeSz5op1mbTEpfUsArfGcXBHTCfc=; b=mI7zDYJ5fZgq2niLF3hSsh1Ixt5T+WmzAlHCU4wyV2lr44iMu4QW3lOk3AMU+hsP0q cqUL4hpG8z7zrgCDLK4L2OS6lpl4340nsa/So0dNgRPjTM1sGqjs3ZqXmlTACZIR/0Ul TElZhKzxqfrp++eNQDZ/NYEiPhfOTgPcexEcfVCp6s6pU5097yuXifhOEUcFuZULLStF S6Zfo4CbwHnrShKx6niF7BsJMns0t3meHGtMNbP+DgY22eJG6aUDJi1C1I0W9ThXiL3P pCkj1Jaxs/ljzK21iC/b/eFIikz8lLWmLLCfsF1+2ZdcyOFi5/TsCc+tNoaKaXUp89CA msBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709630455; x=1710235255; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=PRRM/ARae3sSFkhIeSz5op1mbTEpfUsArfGcXBHTCfc=; b=HXCIk6ZYLDzRuwAOs3CF/tTMbJFyPm59VCjlVr+rVlmCmLC+ScdGEW7OoaML43ttZb OzC4dnZDTeL6NnetiNwPfaRYuTZ4ALw0nuxrBoU+c8mMKqiAnfju2KpnSSa6DIGROrRX c2IwOSakfRMGq5HXiaPWG+bEJk7AnDI4YnyjBOa96RBf5B4RrRIcB1QCmOygYstW6XJP 5g58miTQ0JSY/XxyT84IF06vuOtJQxgATgwHI7TlJzf6ikH/AcUlkbz+IiCOZUYg5BMC oLoK9uk7CtmFhvPSZsO+emzqNT8o40Q+SCNVfC8R9mwTm4akQezcwGrOge0C8LrZGbaN Ymjw== X-Forwarded-Encrypted: i=1; AJvYcCVrw+XdubaGCg+PjMy7PgpUu01rJvaTOMKbudwp4VCyrnzMV9Q8dVQa/QGSkEb9Ce/2YwBvjvTgErD+HNQpaEQqWHKaaCuCyV8DnHi8 X-Gm-Message-State: AOJu0YxKRxUo834xz1yN3zR7WH/cxgPh2FbtyjWei7BV3kf6y29utLX1 Hhc/+jZOJZvzUIdz2tFXbsB3cCj/EI2x1uJoH8SBdvkaWiAB1yYC X-Received: by 2002:a05:620a:1a0f:b0:788:137b:b847 with SMTP id bk15-20020a05620a1a0f00b00788137bb847mr1555482qkb.7.1709630454804; Tue, 05 Mar 2024 01:20:54 -0800 (PST) Received: from localhost (55.87.194.35.bc.googleusercontent.com. [35.194.87.55]) by smtp.gmail.com with ESMTPSA id x2-20020a05620a0b4200b007881e5a90e9sm2926930qkg.125.2024.03.05.01.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 01:20:54 -0800 (PST) Date: Tue, 05 Mar 2024 04:20:54 -0500 From: Willem de Bruijn To: Breno Leitao , kuba@kernel.org, davem@davemloft.net, pabeni@redhat.com, edumazet@google.com, Willem de Bruijn , Jason Wang Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horms@kernel.org, dsahern@kernel.org Message-ID: <65e6e3f62c314_3cfad29462@willemb.c.googlers.com.notmuch> In-Reply-To: <20240304183810.1474883-1-leitao@debian.org> References: <20240304183810.1474883-1-leitao@debian.org> Subject: Re: [PATCH net-next 1/2] net: tuntap: Leverage core stats allocator 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=utf-8 Content-Transfer-Encoding: 7bit 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 tun/tap driver and leverage the network > core allocation instead. > > Signed-off-by: Breno Leitao Reviewed-by: Willem de Bruijn