Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp117904lqo; Wed, 27 Mar 2024 08:23:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWTT5dPj5kWvvTUVtCNyuq8yO3Sl1YxPweSv+c6GjvbCjHJ5BkcC5xhPdp5WdU4D8BX+kuUodA0Mv6TEbCWftLPDKHNDQoop+O8Jq0htw== X-Google-Smtp-Source: AGHT+IGqEH0qFv8Yz6m1q56MtEncchy+2HF5DIBN7btNnk0HLKmY9I+WF/0KntaTOnUBhn5cXLAx X-Received: by 2002:a17:90a:e2ce:b0:2a1:f4ca:dfaa with SMTP id fr14-20020a17090ae2ce00b002a1f4cadfaamr365587pjb.13.1711552992400; Wed, 27 Mar 2024 08:23:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711552992; cv=pass; d=google.com; s=arc-20160816; b=Y7KGJfhIteh5e4fS2YmLpOUOmM8CRQzaamFbiEDTXLoraBZtawSud6HHntGQYgLddz UwfkPDfMA+RkBikwcaALohUe96nEB7vhZR6GhS3ACdRvOGlJ0hRDFtv+p136ryy3/f4U KATm7I8WCKCwre3Xtuesqlmhr2OJwxzY8Dc31LrvsjJWPB/jBAeMTWU81F3yp4URWAXw GKZettnE8zA+y7Qd7hXngBtDOjQrfDeL/+R11Dlw4B8uJW7wnkpAJJIy5IN+bUK3AKo6 /dlEXuxOtJ15iTbROQDjVbm9M4JIwztR21VlhcwzDdFZu8LBwNpYPrV2riU/Hg/kUbHX az2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+58zrK233oeWK4gQ2+7JhucbadLr2MSrvcBnveBiPiE=; fh=UrBjdFZhiMSc4kANffIQqPhiixkWv/hTj/VO3IIJiXs=; b=iTBdi1K7N+8lVCK1btYDRfgkXBR1OXVxAAgVl84YQA9df3qTtRgyNbkjFLfPOXo6a8 ynkSuRsbQAC3PB9uWZsJJWsqDSsBxMYeRa9N0SZrl6JQX0lWFQkOch+Dcq2GsOxOu6FH GQFnUg9kQ1A1svVv8f9dxPQ4SItYSvOYTLDIR6mR+ng4GLNsJm9fF+jF6tdobOFwV5dE 50h1/zC6fNnEYA7dmrc7QGJnaI3Zcl5ahxk5kiT/bIKm5n3q1QXFDBd4SAqqNblpatsd 5qgjSKY4CAGQ6eukmjejvgrS8y5etrTnNfCpY1gkIzBIcsSsJcKaxrhEM+r71+XHWV2r pPsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SK8fYpPJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121390-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 j11-20020a17090a7e8b00b0029b7ee70f54si1661008pjl.126.2024.03.27.08.23.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 08:23:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121390-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=SK8fYpPJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121390-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 842D0B32ED8 for ; Wed, 27 Mar 2024 14:54:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFF5015CD47; Wed, 27 Mar 2024 13:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SK8fYpPJ" 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 EBE0414036A; Wed, 27 Mar 2024 13:51:27 +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=1711547488; cv=none; b=T/9hhZKycQXRXeYoYHfwtcURK1T2ALMLr6wd4bvWBzdazIaGy6tMlmAbnvDmz8c5m63032YqEGolcXOppJD5Zv3PETRHP8oCDLt8Oyalm04S6GugjyXWv+eES1UBkscWvlyjzI+sSeQbMFjb7mVpWgWvG1JC81kyEYzpDPGJn+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711547488; c=relaxed/simple; bh=C+/DHEdS6K2+oImIJDlxR2Qi86AMUZcRYdZThwNiKKo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=o15qqAJnk48yjzKf71MdeHxMY2s2Re3BruTi1EeuZIrxTaWHv4NsTB32hU7DevdSuFEc+R3mFIZisG23MAKBvH1GWz0SLDTWxRxYKATjFT4BqGeOKG1isLZb1zE3B2uUe6z+9/Qx5KZtDyjVCdguiiOG9G4XSN+mWfXy93zXyS0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SK8fYpPJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD764C433C7; Wed, 27 Mar 2024 13:51:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711547487; bh=C+/DHEdS6K2+oImIJDlxR2Qi86AMUZcRYdZThwNiKKo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SK8fYpPJtAdUQJs3ZnedwLi/VYQpFHMCwgbWnHQOQdMOKNizlHjNNhEKiOpMVrTsH C2WfQ2wT8Qy24ZJb6Sy+AH5ky09FMOcS80yXRlpdDHZTymivSxsckWnFHn1HSQltpm 3/0rB6geR7lpmwmhEPJI4CPrtEdw6IjaHzc5bPxOurPop2E8tYEaSgjPJDELsqTM1h T2My22/I8YJiJeJfJKDeh8GLL6XkhMqxa7LwXwipJTAPXKEtPZPMmsPNhXMn+1FCBT xipKCE3LGzlHeSBXrYS7HGWUJVMgxXKrwAw3MI6pvCujydGkvzlZXpTtF2BGcGkFbu BhEZ77nCfIRIg== Date: Wed, 27 Mar 2024 13:51:22 +0000 From: Simon Horman To: =?utf-8?Q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= Cc: Jamal Hadi Salim , Cong Wang , Jiri Pirko , Daniel Borkmann , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vlad Buslov , Marcelo Ricardo Leitner , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llu@fiberby.dk Subject: Re: [PATCH net-next v4 2/3] net: sched: cls_api: add filter counter Message-ID: <20240327135122.GF403975@kernel.org> References: <20240325204740.1393349-1-ast@fiberby.net> <20240325204740.1393349-3-ast@fiberby.net> 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 Content-Transfer-Encoding: 8bit In-Reply-To: <20240325204740.1393349-3-ast@fiberby.net> On Mon, Mar 25, 2024 at 08:47:35PM +0000, Asbjørn Sloth Tønnesen wrote: > Maintain a count of filters per block. > > Counter updates are protected by cb_lock, which is > also used to protect the offload counters. > > Signed-off-by: Asbjørn Sloth Tønnesen Reviewed-by: Simon Horman