Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A1F5C433F5 for ; Wed, 1 Dec 2021 15:21:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350840AbhLAPY4 (ORCPT ); Wed, 1 Dec 2021 10:24:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243412AbhLAPYq (ORCPT ); Wed, 1 Dec 2021 10:24:46 -0500 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7284C061574 for ; Wed, 1 Dec 2021 07:21:25 -0800 (PST) Received: by mail-io1-xd2c.google.com with SMTP id z18so31293812iof.5 for ; Wed, 01 Dec 2021 07:21:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=MLUZwUEBzklOGib2Zk3PFAvxb+CbG+R1DuoQKaGE8gw=; b=ZuxaIRAQw9xvNctBz60Nfj9NhxbsQHjyNOETRPbMvYnh6f1pkkzEwYLKASKsQkDBsX cLxgvj4lcCVQwhetojQ9xZKtNbfvIHUUHXRXIUaDp7jCRfr9SAOQc+gyl9xFKXCnPeGQ H9NZep0ZvpgVihUy0KR8fIAAvJ1Mqn+ZN01E17kxyRlAXR/wrc5tVVh2RqcsrvC7lTt0 TiyuS7VCsRmAr544lvRG/0BJNv1hD5xuPcyVZDknUo4F2sG8YNDlIhFfNWDQLJymasS6 +009TxLuUtj/Vy51v2ws2aP4nFTf0va4FAhv8hFG4z4HZq3b5/zTF8SFjy9h4JUhyXM/ l+wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=MLUZwUEBzklOGib2Zk3PFAvxb+CbG+R1DuoQKaGE8gw=; b=wxSZ4Ui762+iy4MggNTYaVJ/s7B4w+K4HqYkgaOrpZ+VbgK1XNk7VuoNzMU3+P90MR IIEjA5jgbHJ2iPYnasyCoNozI24NAiS0Uu2XkSWRUmd67te2wiIJbw5AsME8ploI2UO+ u+lYVKcQrhwLpyR3KME9FxdUAPceWe/QzfojrkSYu7nZv0dAo+qLQ1TctmZsZ9P3G0PN 5taS+uTgCv6rECywwa+W1M9DJtfFeBZ2PiaFpNmP+ZkKHXfPq5ql8Em8l0oHNe1PBiFG CFr9XUxLLZXyOjugx9PGSbGDwfJfxne87LGyhxce8hIHcaupsPDD3mqsR39ROUt8lDuc yI4g== X-Gm-Message-State: AOAM530kbjFZiNQxBsql0b/FpffOec/zQoZK0CX5bikhg+VVcvAO0/RG w/DCZR72P7gnJLzCa2qrH5k9Iw== X-Google-Smtp-Source: ABdhPJxtrTLI1AMMf1O0aIqny9q8Vj3DCKNibLPnD2qvc7DdypU9Rl593ilbA+ms0w9jlf6eGN7WkA== X-Received: by 2002:a05:6638:3711:: with SMTP id k17mr10967372jav.72.1638372085289; Wed, 01 Dec 2021 07:21:25 -0800 (PST) Received: from [192.168.1.173] (bras-base-kntaon1617w-grc-33-142-112-185-132.dsl.bell.ca. [142.112.185.132]) by smtp.googlemail.com with ESMTPSA id y15sm117996iow.44.2021.12.01.07.21.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Dec 2021 07:21:24 -0800 (PST) Message-ID: <8f9faf42-8a78-f383-3b93-a17fab4ed79b@mojatatu.com> Date: Wed, 1 Dec 2021 10:21:21 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: [PATCH v2 net-next 00/26] net: introduce and use generic XDP stats Content-Language: en-US To: David Ahern , Jakub Kicinski , Alexander Lobakin Cc: "David S. Miller" , Jesse Brandeburg , Michal Swiatkowski , Maciej Fijalkowski , Jonathan Corbet , Shay Agroskin , Arthur Kiyanovski , David Arinzon , Noam Dagan , Saeed Bishara , Ioana Ciornei , Claudiu Manoil , Tony Nguyen , Thomas Petazzoni , Marcin Wojtas , Russell King , Saeed Mahameed , Leon Romanovsky , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , John Fastabend , Edward Cree , Martin Habets , "Michael S. Tsirkin" , Jason Wang , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Lorenzo Bianconi , Yajun Deng , Sergey Ryazanov , David Ahern , Andrei Vagin , Johannes Berg , Vladimir Oltean , Cong Wang , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, bpf@vger.kernel.org, virtualization@lists.linux-foundation.org References: <20211123163955.154512-1-alexandr.lobakin@intel.com> <20211130155612.594688-1-alexandr.lobakin@intel.com> <20211130081207.228f42ba@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20211130163454.595897-1-alexandr.lobakin@intel.com> <20211130090449.58a8327d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <18655462-c72e-1d26-5b59-d03eb993d832@gmail.com> From: Jamal Hadi Salim In-Reply-To: <18655462-c72e-1d26-5b59-d03eb993d832@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-11-30 12:38, David Ahern wrote: > Today, stats are sent as a struct so skipping stats whose value is 0 is > not an option. When using individual attributes for the counters this > becomes an option. Given there is no value in sending '0' why do it? > > Is your pushback that there should be a uapi to opt-in to this behavior? A filter in the netlink request should help pick what is user-preferred. You can default to not sending zeros. cheers, jamal