Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp486930lqs; Tue, 5 Mar 2024 07:41:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVymFThlqkas2+qmJYl4nAyCleZb9DtMo2xcNC2U0n8szVlu5nve8X7kqXTlTUgowhKus85x3opthByGUdvWNkwTYZirVoSsMRUBywXTg== X-Google-Smtp-Source: AGHT+IEl7nODTqwehsSXzJYcUC9qToxmlF3vqTvoZiZnGjdvi64KdNJRLu03TBmw4tlLrSPS6feS X-Received: by 2002:a05:6a20:7489:b0:1a1:4d86:55d with SMTP id p9-20020a056a20748900b001a14d86055dmr2754907pzd.13.1709653139382; Tue, 05 Mar 2024 07:38:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709653139; cv=pass; d=google.com; s=arc-20160816; b=cnmSVPxfIQQ2jvwABFmq3+WTcE3x7Bwkzjtn6rIFtVt8SEgVNduU31DDTiGSP7B5QT MSmDXSxgsmhdmEEBXNbkSanOxEnhlWXf1BRTBW/sFcwG6C4joETl1zIRwWcdi8WrgGK3 47eRI8oQUxCyjqcrEfEER7IR/RD5KF+3Qfz39sHqXaXiPRvlg75ukCHCsz2P1zt1p/xq fPsDCsUB4hsB1fovwLbC4Dt153Tk6G5quaBYWBfA69XcHkB5BuvqbF8beHAELQX+aAtp XohQZNadhL/e5hxZ7W18lqaqbR2v7hC0T/DV4MRnlcrbDIAxPDdO0kZ8NC8XQmKs0+EC wDFQ== 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; bh=PkHzxDkPTvxLhxj0EAbp8DFx9XB7YeyUsFvXrJHyBMM=; fh=88GyAPauS80E7VpBbF956jO5KMt/fOzipNT9SvfnZDI=; b=Q+WqnxUfcBd8FWOZSRjao2VAX53jvi7ndxDZCsvZn49Xnq1dYR4VwAT8Z0+boGLliX y2BGZkZOSZed8Zrb0cBwxBE/8XG+YaQf3SvaAOvXjMlIri3y2hsKa6IK2vsJMMGCOhR8 HXAwQT0vVYpFBwBcTl2mqvWsLO4Jbss0xNwJrEujp5B6LwQaubnYxrHKMaxP4nadnCSs ZsqdFuDq3eHorEyupd9ibTDTaIYsBR6dbGung+ng40panemmOYBtYZdi045kHlx2DwYw kTK+t4INNodhNDHLpfKNn1pGurRR58diTdj2dX8pxLFZleHwAEDn4kApQwEU3tLsELcQ j9DA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gnumonks.org); spf=pass (google.com: domain of linux-kernel+bounces-92618-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92618-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s195-20020a6377cc000000b005d9b49b7abasi10399018pgc.846.2024.03.05.07.38.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 07:38:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92618-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gnumonks.org); spf=pass (google.com: domain of linux-kernel+bounces-92618-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92618-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D329B286524 for ; Tue, 5 Mar 2024 15:38:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A655127B54; Tue, 5 Mar 2024 15:38:50 +0000 (UTC) Received: from ganesha.gnumonks.org (ganesha.gnumonks.org [213.95.27.120]) (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 5097C85944; Tue, 5 Mar 2024 15:38:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.27.120 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709653129; cv=none; b=dkpf5OgyGeYTLbFfNVtBhcji30jb1s/hwMMl3NOsT0X8wXYTT6Q4FS40E6fy7eA5/+79BjAkhnmOSk8CTZlhxF3MEb1i3W8l7vO7B7ewxWGKjOutn7z770n+Lfrc6OOqC43utZnfuBlklcVDAMKHeoWfUKjqSA3eY+u53u9cCnc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709653129; c=relaxed/simple; bh=7ovliyzJP+HYSxeckuD6+XQkQBinbhAkZ0/wznrdJg4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JOrYxK1gbo0opu3TF8u++VIWrcfDcYxEFlePqLYfTp921ghm53VCCp109U+CKaivW7b7HevzB/EuhFnVq7kDdm3PnrEBqQSciUzQl3WB131EbK7UXgYw9l5kXfUURZZq+5iqEclCjlZFouauDDIRjW+PK4jK3inPkl4g9Nmaci4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org; spf=pass smtp.mailfrom=gnumonks.org; arc=none smtp.client-ip=213.95.27.120 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gnumonks.org Received: from [78.30.33.11] (port=42874 helo=gnumonks.org) by ganesha.gnumonks.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rhWsE-00E3CU-S6; Tue, 05 Mar 2024 16:38:36 +0100 Date: Tue, 5 Mar 2024 16:38:33 +0100 From: Pablo Neira Ayuso To: Breno Leitao Cc: Harald Welte , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horms@kernel.org, dsahern@kernel.org, "open list:GTP (GPRS Tunneling Protocol)" Subject: Re: [PATCH net-next 1/3] net: gtp: Leverage core stats allocator Message-ID: References: <20240305121524.2254533-1-leitao@debian.org> 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-Disposition: inline In-Reply-To: <20240305121524.2254533-1-leitao@debian.org> X-Spam-Score: -1.9 (-) On Tue, Mar 05, 2024 at 04:15:21AM -0800, 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 gtp driver and leverage the network > core allocation instead. > > Signed-off-by: Breno Leitao Acked-by: Pablo Neira Ayuso Thanks, this was on my list.