Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3660752pxu; Sun, 11 Oct 2020 19:12:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHd/096mdvcKXiSRIFOSrqUBvLrYwNl0pMKUVwgzEMB86IDMND0iLbRjR3rW6HdIzVIHWy X-Received: by 2002:a17:906:d7ad:: with SMTP id pk13mr20087292ejb.33.1602468744543; Sun, 11 Oct 2020 19:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602468744; cv=none; d=google.com; s=arc-20160816; b=MbqgwOgG6FL4Y3hMAARlrK0kvWLP7UYd9oVDua0TtjhJi6cUrQCI59leF+IMv4FX5X OeNOA6ZALmxBDO7xLlWLGxfhdvjcxxztyRHTW1r9bhAQOo5F2k26XsOL7y5YdpK07cS8 zhr9wZX9Et++E922+/OlUmL8dwkDnYT/oB3GR1z/6VNyJbHgtJDcweaNKCnc+f5WbKdg Ba6ZSsiQ4nm5ToNlmDkyOWK3p/uV5g1ltllexgyK/tRMxbcr5/08yAGJBzCJJ01oPfGW Hdtae/Scb6/PhhJ0PubHuzsHM63RuvzCsUHpd4A4X91xEEeVWCf8imMhbO14SVF0hrka p3ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Ce5PmEqmv1YSWMDHRt7GbAyKG6KhkYzK8oKJ+L0ajJU=; b=dKWFZF7TBomK89ZuPDKFYxmEX7Uzdg/NNoF02TEAwsLgs4x3L21iCD1nM9huMvtg0y p7nYU8+/9eRj1oLw5UWsfm35wIvVLToS/v+BZjInB5MAdFy+WWDeqxjxVaspNzxkP8kT EQJc0aTIo7HasCTjW5tPhCdJGtpttir6NwZgyTLSm/Sr4WIx10XMylautwbzQxPNduiY f8dWsLv9SrTlfATpOC2obOKw7jltj3GdEZxqLXgKFlI3xEagoOfnKe6mOI+k3O9zZua1 s+BKaWvOlhMvWu53PshQMp2Manir2CWooaGBnfTO+8f9yoQN3PiZyxUeSvCWvTGjAD6R qIfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=NecgSIK6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id da5si14423455edb.278.2020.10.11.19.12.00; Sun, 11 Oct 2020 19:12:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=NecgSIK6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726733AbgJKTyW (ORCPT + 99 others); Sun, 11 Oct 2020 15:54:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726456AbgJKTyV (ORCPT ); Sun, 11 Oct 2020 15:54:21 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A13C9C0613D0 for ; Sun, 11 Oct 2020 12:54:21 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id c20so865878pfr.8 for ; Sun, 11 Oct 2020 12:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ce5PmEqmv1YSWMDHRt7GbAyKG6KhkYzK8oKJ+L0ajJU=; b=NecgSIK6HUp8mfsj4UInLUpOx0FhmYVbOiqvrr2fvZ5TYkrQUuEXkLPTzx5tcFBsEz Nq5+JltEQ91NdKRQV2G4Iq1a+xepvbeY+DfJKI4gN+xMLpM7ffxRD/Vy8ael2SRXmk1R zyFNBrWANYpGkvC0C9FQlDI7o+XgrW96Kn/50uUMwFceO/cPDsQ5nMCNredRM1yohFiF WCfcxk5DLRJtocYCPu/Q2rJDAWygrt7fEniMPlOpK2C7WdbS9Qof9pGftoU6zVWTgefu A0B22SdP73LR4NQuzphqUkQ+dMI1GkQXsNYI0Dl/JKScaU4MYP2jBBnNoIji5e1DpelC TCTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ce5PmEqmv1YSWMDHRt7GbAyKG6KhkYzK8oKJ+L0ajJU=; b=Boy7zr9MQyz+tHCrjSfu+nH4Y64tdlOjuZ5LnHwYumg1mepxClVMlCw4dIozte+ump u3iNi+5VkjMYoRbC/nYpLufB4LaSSQoNobYN9oQP3JoBDD1fDQbPj7dP/eyrpONY+rZA p+NrVWs3DfbcHy5/QVGDZ4LwEXmrcn1eWqcZe6q4dcqLdmAmnJpyqRDlPVBDS3VP8kNW p6SLYVdLfms/uzWAyECocEAweCU7bFQZXX5zakIvidBo4gw4FX67At643FP/3gpcg8+8 gdz0onax0Y3TRgBmg7OX7bkt6cg2ayWA2XkZ5AZsTM8miKrQJrPP6t36MTHi95SjRXNQ +DIQ== X-Gm-Message-State: AOAM530gKhqySWJLowQLutFAtsA3C1Ao8YsiZiil83C49U9QOhg70JHw un1xPM/YumnSVS5hR4wUlt0XKw== X-Received: by 2002:aa7:8216:0:b029:142:2501:3968 with SMTP id k22-20020aa782160000b029014225013968mr20639458pfi.45.1602446061008; Sun, 11 Oct 2020 12:54:21 -0700 (PDT) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id a185sm17241288pgc.46.2020.10.11.12.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Oct 2020 12:54:20 -0700 (PDT) Date: Sun, 11 Oct 2020 12:54:12 -0700 From: Stephen Hemminger To: Heiner Kallweit Cc: David Miller , Jakub Kicinski , =?UTF-8?B?QmrDuHJu?= Mork , Oliver Neukum , Igor Mitsyanko , Sergey Matyukevich , Kalle Valo , Roopa Prabhu , Nikolay Aleksandrov , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , Alexey Kuznetsov , Hideaki YOSHIFUJI , Johannes Berg , Pravin B Shelar , Steffen Klassert , Herbert Xu , "netdev@vger.kernel.org" , linux-rdma@vger.kernel.org, Linux USB Mailing List , linux-wireless , bridge@lists.linux-foundation.org Subject: Re: [PATCH net-next 01/12] net: core: add function dev_fetch_sw_netstats for fetching pcpu_sw_netstats Message-ID: <20201011125412.3719926a@hermes.local> In-Reply-To: <5bb71143-0dac-c413-7e97-50eed8a57862@gmail.com> References: <5bb71143-0dac-c413-7e97-50eed8a57862@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sun, 11 Oct 2020 21:36:43 +0200 Heiner Kallweit wrote: > +void dev_fetch_sw_netstats(struct rtnl_link_stats64 *s, > + struct pcpu_sw_netstats __percpu *netstats) netstats is unmodified, should it be const? > +{ > + int cpu; > + > + if (IS_ERR_OR_NULL(netstats)) > + return; Any code calling this with a null pointer is broken/buggy, please don't ignore that.