Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp129538lqh; Wed, 27 Mar 2024 17:51:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7rJHL49XjffC+ovGC9pRt1V/ha8urWoruaBQ7nC6M22WVKHaqttPrQ9bTZhiwt4SjCSz04J7mctQCptootrWOKKEZYsvhZtL7FkzDhg== X-Google-Smtp-Source: AGHT+IEXqXrVscuHR9Oj9dN8ToWZ+Dh22mbJZ2zV07annkYRtAE0S9Fju6UVg++ZMWz3Atz4ZGXH X-Received: by 2002:a05:6808:10c3:b0:3c3:d8cf:fe24 with SMTP id s3-20020a05680810c300b003c3d8cffe24mr2012574ois.11.1711587100311; Wed, 27 Mar 2024 17:51:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711587100; cv=pass; d=google.com; s=arc-20160816; b=q6oUBTZSe0IVpn8c7MYxJPI3lAlO/RJtvyu+iPYXu7DUomE8eVdpzZWCrFLrXmT6FY BXNWG6wpaxAIbpk13SD05suHr8tjujvRzjtq4YjN/JIgQM4hUjqxagIkNLvGT8Xy1YD0 FMgaXjwUqYxNDDbFhvIr815i51FLJwdJJuLmXZ0jNV7ZQnbVPlE55wVmMNVHNw67gyKz kHsE/Iqy/SOvg1G7x3uG2MnuktpE6s0AlP8iJsVOuR6mXu0YkSInq8jE+kXzT1iC7I4c 8+4REVPKEjH8mjPG3j0+IM7tSO8C57IMtZOGkQ2uxrxLHsFYB8EWKSX92OQJc5nQI8iW 02CA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:in-reply-to :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:from:dkim-signature; bh=5O0BckSJkMcZIPPF6A3HpA/50UE6EVGOMA31bgfACvo=; fh=qpESJkKnQ3xd/cZzH15U/2C5xKsMEeh3MZVv19RWmLc=; b=K/jKkYtnRxQk/1tqW1KLIkhlczYuHEV7YxtFOnfqPxsu88qdAR0/GIJV6sOFTv3lLZ cv07Ph0Vj8kmY9R9ag2VnNEhzP8+Dash+KohUGALt92KNe3Um7y2gx/BpAO+7ttUCRBA d4L8754BDD8AhoVXfavTiPa6ovR7RsvIQ91F8y7HiEe6MKhbs/vM60yLIjMK1OpXbfCG UaZ1O66IVWf75aMzNwjVkWklwYDNJePy8/RUyF54wOURaD0prW1mqEZwDEfWpfEkReJX t4LdE84iNjz8ztDC2HM9b0J5Jgdhj/Ao+fM0zC3n9KLrpEc+SpVPjtk7rZbHj59L8Mix KdGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R2limyeC; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-122246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 z4-20020a626504000000b006eabb98a961si304731pfb.207.2024.03.27.17.51.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 17:51:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122246-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=@redhat.com header.s=mimecast20190719 header.b=R2limyeC; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-122246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 CE2982C1513 for ; Thu, 28 Mar 2024 00:49:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E309936AE1; Thu, 28 Mar 2024 00:47:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="R2limyeC" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 8D77C816 for ; Thu, 28 Mar 2024 00:47:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711586826; cv=none; b=WHDMoFcyN6I7LvnaGxpryHObs25+7y1VNo2ppBHUZjOSbpEDHl+divdYdPnfPLxzE2HFBlcTdVM+ZNsw/h9wNybtSHblcuazKlXlDnj16i7U8XmPSSWDL+4snmvFi9Zrbjm2Yg5amZ+lKap4ONWsUu5GcF71APS6rvBq3u4f7AI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711586826; c=relaxed/simple; bh=5O0BckSJkMcZIPPF6A3HpA/50UE6EVGOMA31bgfACvo=; h=From:References:MIME-Version:In-Reply-To:Date:Message-ID:Subject: To:Cc:Content-Type; b=G4OI4b42nM/H86YVyK33iL3Tb+ScSI1QVp52WUYIM2ksl9WAmrHWxfygEGnMCD6bpYmGbBBnr+ixSaSai3N9mNFtO5tCdIIU7gaGWndCmotvr5AM5zanC+78ydW8bRgn+X9vbldoC9al1H9//giufLsOUtRPeOtAdngp4wHSoyc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=R2limyeC; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711586823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5O0BckSJkMcZIPPF6A3HpA/50UE6EVGOMA31bgfACvo=; b=R2limyeCOhyS/KCKX4B5Vc6pF4TG0ZJLHqoIqz5mGHhNZ5x/O6/i8tCvHNjAHe8CDO5yX3 rKSqffwXfPpRqBha7ARlKpP5EFiRyPqv/aCi7YGpLiEl41T7fSeuGJe84NGnZbF5kaFna0 1Dp2SIz/ZA+WenwQDLfbXbCxJsAZjtg= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-277-Ta9YYY_zOsiOXRpy_Ar6WQ-1; Wed, 27 Mar 2024 20:47:01 -0400 X-MC-Unique: Ta9YYY_zOsiOXRpy_Ar6WQ-1 Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2d48517c975so1925201fa.2 for ; Wed, 27 Mar 2024 17:47:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711586819; x=1712191619; h=content-transfer-encoding:cc:to:subject:message-id:date:in-reply-to :mime-version:references:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=5O0BckSJkMcZIPPF6A3HpA/50UE6EVGOMA31bgfACvo=; b=TngLK47JEJOwwBUXYYdkPJDY8iwMoRvfNDm6iKq9PH6TbbUuHoXKogkewJ3xnvt7qZ 3Tl/6D3M4UOUQLfcNqAPoeED+sNyehjTBeuK+5DsNX+ur7x7aUTTCsY42FhQsOHhgFBX PGv9djDyWCSxwovhHdVlcLHtRrVLbUQ1+fIYbWCSkwte6UtJ95OPJtN+Lr8gHSLIVUvM BVbByNSvDqCf0exb9UByipnzrmIiKixsaqC69mpp57RaQsvci964OFzhQfio4hWS8DcJ YaTUYAMNgNt0sPBab/vy0Fi/+7aygq74oiSsOPIUjMAtXzfxTRu4clysdQCrbsgXnDff vARQ== X-Forwarded-Encrypted: i=1; AJvYcCVRuT2MMEoyLPvneXF52jsltKlVpLfPBmV/ao1+weaaZ+nHCCWvaHJjNJo4IVHStIqvESHoIMNEw6pPfasTN4MEhY7W+cPciydYjmeN X-Gm-Message-State: AOJu0YxQStFYPF4k70ikA4OjdSEAf7dE+Vaf6JXX9XnaMdQWxamnJ+vL MNzr7Nppne9dfGkDh8a/7JchPcGoqVGMnP3IL1nb1Q+cTJjN+ShOqITVrqlPEN6kGEi1QiStT2o qmpHhHUzXVk2ohhRMQMj+mJ6+mj77X13MlWa8wZnR1T8RoycdrXhVj0fH7N9Hwg5BeCGUaVloGn 0zX8MAx85I6RBMNpnqdukwfsQHsU+YfEsBwD4W3pahO9Xy X-Received: by 2002:a2e:9f50:0:b0:2d6:f96c:d84d with SMTP id v16-20020a2e9f50000000b002d6f96cd84dmr867643ljk.16.1711586819578; Wed, 27 Mar 2024 17:46:59 -0700 (PDT) X-Received: by 2002:a2e:9f50:0:b0:2d6:f96c:d84d with SMTP id v16-20020a2e9f50000000b002d6f96cd84dmr867635ljk.16.1711586819340; Wed, 27 Mar 2024 17:46:59 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 27 Mar 2024 17:46:58 -0700 From: Marcelo Ricardo Leitner 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 In-Reply-To: <20240325204740.1393349-3-ast@fiberby.net> Date: Wed, 27 Mar 2024 17:46:58 -0700 Message-ID: Subject: Re: [PATCH net-next v4 2/3] net: sched: cls_api: add filter counter To: =?UTF-8?B?QXNiasO4cm4gU2xvdGggVMO4bm5lc2Vu?= Cc: Jamal Hadi Salim , Cong Wang , Jiri Pirko , Daniel Borkmann , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vlad Buslov , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llu@fiberby.dk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 25, 2024 at 08:47:35PM +0000, Asbj=C3=B8rn Sloth T=C3=B8nnesen = 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=C3=B8rn Sloth T=C3=B8nnesen Reviewed-by: Marcelo Ricardo Leitner