From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72095C11D2F for ; Mon, 24 Feb 2020 15:50:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4501F20838 for ; Mon, 24 Feb 2020 15:50:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727980AbgBXPug (ORCPT ); Mon, 24 Feb 2020 10:50:36 -0500 Received: from dispatch1-us1.ppe-hosted.com ([148.163.129.52]:43122 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727972AbgBXPug (ORCPT ); Mon, 24 Feb 2020 10:50:36 -0500 X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 5D663940065; Mon, 24 Feb 2020 15:50:33 +0000 (UTC) Received: from [10.17.20.203] (10.17.20.203) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 24 Feb 2020 15:50:23 +0000 Subject: Re: [patch net-next 00/10] net: allow user specify TC filter HW stats type To: Jamal Hadi Salim , Jiri Pirko CC: Jakub Kicinski , , , , , , , , , , , , , , References: <20200221095643.6642-1-jiri@resnulli.us> <20200221102200.1978e10e@kicinski-fedora-PC1C0HJN> <20200222063829.GB2228@nanopsycho> <20200224131101.GC16270@nanopsycho> <9cd1e555-6253-1856-f21d-43323eb77788@mojatatu.com> From: Edward Cree Message-ID: Date: Mon, 24 Feb 2020 15:50:20 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <9cd1e555-6253-1856-f21d-43323eb77788@mojatatu.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Originating-IP: [10.17.20.203] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1020-25250.003 X-TM-AS-Result: No-1.439000-8.000000-10 X-TMASE-MatchedRID: 5+1rHnqhWUTmLzc6AOD8DfHkpkyUphL94lzqEpaPQLWZt08TfNy6OF71 kxpD3kyBinL+T0EoeSAt4xyEud4fJR3noULxg9buIwk7p1qp3JZ/9Mg6o+wMi/ITG2uG4/lQo8W MkQWv6iUDpAZ2/B/BlgJTU9F/2jaz3QfwsVk0UbuZ/dgf3Hl0lfozOWH1sPY9HFl6SMKZdMmq/X emM29Vbc3WNrZq6Vx4RxXJ+SDt/AakCxZBBLFXCsFGkKJWfGE5ZB2F/HSXW9hSmWLFCFyFuKKAQ fLsnhLrKWSt4DmvbhpicKLmK2TeKmsPn5C6nWpTiTSgm8kJVKRDDKa3G4nrLQ== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10-1.439000-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1020-25250.003 X-MDID: 1582559435-hbl5TyzobRUZ Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 24/02/2020 15:45, Jamal Hadi Salim wrote: > Going backwards and looking at your example in this stanza: > --- >   in_hw in_hw_count 2 >   hw_stats immediate >         action order 1: gact action drop >          random type none pass val 0 >          index 1 ref 1 bind 1 installed 14 sec used 7 sec >         Action statistics: > ---- > > Guessing from "in_hw in_hw_count 2" - 2 is a hw stats table index? AIUI in_hw_count is a reference count of hardware devices that have  offloaded the rule.  Nothing to do with stats "counters". -ed