Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp909000lqh; Sun, 5 May 2024 07:16:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyZil2ivlmKlBI/dAFu5Y/Z9Vp0GhpLXAADjDByfMiMhXztAKVP66Vsc/QlEM2uFWMmS+a09xTqiqmJ9QpHX7ilS2BVVmVggANaF8xKw== X-Google-Smtp-Source: AGHT+IE9BqEJ7xFBBQoD5BS+PGxQ5K4rWIYYPHiHYYjSY67T3l9zv3/LixUPN38L6JhnO9XssfzH X-Received: by 2002:a05:620a:28c2:b0:790:9098:eebc with SMTP id l2-20020a05620a28c200b007909098eebcmr11181121qkp.8.1714918582272; Sun, 05 May 2024 07:16:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714918582; cv=pass; d=google.com; s=arc-20160816; b=ZWL6mN2NY+6+kbsXgQqsWq2rUpiW3KWPjT9nVK7x/enupKYKMMoOe4X/xEGXSkwhB/ bDaDR8P1WXj0EIntXHHJWra6NWWgfNqoMuxdmsehzPrAXibQV8198oDQ50Ki2Jxa6ZIX s00MIfQ+ovoeknkx7nYKBkrAOIEaoQQ1D2wtvKpOm0jjB8b2p9esnGyeXC/g2AsGUo9I AAA+k4iLAui1rGJ3/+85PdZbZ5N+u3BQlNCFsWbQ3uh1YrJ09nP2MmgvU9R+Dqz9kBET HA0t1hNiz0HCbCvwDW+mdAGGI9SWTsKT+BpATUqyRjVBBcK2BcezBjkEkSgcUbUbY6/h llwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qVT5Unmd5MC/WMuO8lm24QQupWTM3HjdjBUNK6B/WWY=; fh=QHYO9eBYYjh1IY1o+rZcG1kPQws4cfs1bwJELbUymlw=; b=UPblWxTcLMp7hnV9VKy/PL0QDgwBBQb/DEzzuKBCcEreqdpVfotciaAKqeVdaUrRS+ zfeniAXxpn/X34cuyMvDIVCU8Iq6PSFJ+JhqmPmplf5vg3zgRo336T8yB7ieKti66ptM 1oUXk92HEWMFdlefqVsvChQMFjZMW7tCiC6AWJmUXPSbydroula0qKST7entEiH3ENkg n8CcO6gpUylFDLROeycgEeZWIZf1vtDXhZYc7g+WvM35XQp49lSdi7x4Q+LiCvFTl1y4 uYqaZXAqVGIcG32710A41PubTCt1I32Rc4iqQdCYWmOB5Xrc28VMygyDGiK/HFwj9SEC 8Xzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OVTDNHPw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168995-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168995-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g17-20020a37e211000000b0078ee3002f72si7053655qki.605.2024.05.05.07.16.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 07:16:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168995-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OVTDNHPw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168995-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168995-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A8C8C1C20E25 for ; Sun, 5 May 2024 14:16:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00A2A22F14; Sun, 5 May 2024 14:16:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OVTDNHPw" 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 1F728208CA; Sun, 5 May 2024 14:16:09 +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=1714918570; cv=none; b=AMh0Fj/k6gMVaVDRB9+iDBXbXliBe84GQES98y6Jzn2/5no9GTQaOszcXel/Gc5rlo2z/rVwRP78yk/0OB/IjLaT4vxQjxsw++FrbaY8QRdtZum5i6NBMJeoRmOKnLARUmKag6PG+SGlntbp+sx9TJSx8Z5OXBi04R7B/Z/Y6Lk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714918570; c=relaxed/simple; bh=DLchroJz79kbL2e5l1H7RnbQisLdhsuaVztVjGH3kvA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=vAPqBnXSv7IYrAth9Z261pN6+OXBWbND5YhQa26ZeeHVKgQTNrZaf17OUdXkSiQnUvuNIDXiLR5+AyxY89gbb4PPryEd95DRaQWeI1l8OZzmpKElXBL7bg62tqEYPo68ylF//Oaa7Ezrgzmmm3S2gMuwrwYEVK6iI3Xdq4AZgko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OVTDNHPw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18B99C113CC; Sun, 5 May 2024 14:16:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714918569; bh=DLchroJz79kbL2e5l1H7RnbQisLdhsuaVztVjGH3kvA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OVTDNHPwAr6VpIZAeu3LIunGe1FT2I2+Bc7LitboltauXKb2grFN/LaZDsBpRKXPO yV9fyMEcDhPJbFtufGoWzz0yuLTUMWR5J1QSPj8LOpda35NqL+InZh4w+J9uTFkKf+ tkJwYWsvWVxl2keiuqyoCN7ZzUHdP8qO6K+JnrrYLaFexP/NvECP1YoNnhOqGzVSiM RumCcQRFqWSNbrgq5NH57OhjLbBTWw2bXca3W+ABodKXAL64kJlFTOdmrBcgNKfHQz FBoJh81PUktvgnHjNGLZkpeWfFI8dJ2zB1cKCCMHrbAJY4DT1oB4vqRjgPcZfH5wUW FNYh8m8PbKVIQ== Date: Sun, 5 May 2024 17:16:05 +0300 From: Leon Romanovsky To: Breno Leitao , Dennis Dalessandro Cc: Jason Gunthorpe , netdev@vger.kernel.org, "open list:HFI1 DRIVER" , open list Subject: Re: [PATCH net-next 2/2] IB/hfi1: Remove generic .ndo_get_stats64 Message-ID: <20240505141605.GF68202@unreal> References: <20240503111333.552360-1-leitao@debian.org> <20240503111333.552360-2-leitao@debian.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240503111333.552360-2-leitao@debian.org> On Fri, May 03, 2024 at 04:13:32AM -0700, Breno Leitao wrote: > Commit 3e2f544dd8a33 ("net: get stats64 if device if driver is > configured") moved the callback to dev_get_tstats64() to net core, so, > unless the driver is doing some custom stats collection, it does not > need to set .ndo_get_stats64. > > Since this driver is now relying in NETDEV_PCPU_STAT_TSTATS, then, it > doesn't need to set the dev_get_tstats64() generic .ndo_get_stats64 > function pointer. > > Signed-off-by: Breno Leitao > --- > drivers/infiniband/hw/hfi1/ipoib_main.c | 1 - > 1 file changed, 1 deletion(-) Dennis, Please pay attention that 3e2f544dd8a33 ("net: get stats64 if device if driver is configured") is not in RDMA tree yet, but we are approaching merge window and linux-next is already have it. Thanks > > diff --git a/drivers/infiniband/hw/hfi1/ipoib_main.c b/drivers/infiniband/hw/hfi1/ipoib_main.c > index 59c6e55f4119..7c9d5203002b 100644 > --- a/drivers/infiniband/hw/hfi1/ipoib_main.c > +++ b/drivers/infiniband/hw/hfi1/ipoib_main.c > @@ -96,7 +96,6 @@ static const struct net_device_ops hfi1_ipoib_netdev_ops = { > .ndo_uninit = hfi1_ipoib_dev_uninit, > .ndo_open = hfi1_ipoib_dev_open, > .ndo_stop = hfi1_ipoib_dev_stop, > - .ndo_get_stats64 = dev_get_tstats64, > }; > > static int hfi1_ipoib_mcast_attach(struct net_device *dev, > -- > 2.43.0 >