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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43CEAC433EF for ; Thu, 5 May 2022 03:16:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240842AbiEEDUR (ORCPT ); Wed, 4 May 2022 23:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240743AbiEEDUO (ORCPT ); Wed, 4 May 2022 23:20:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 655011F9; Wed, 4 May 2022 20:16:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1803DB82B1D; Thu, 5 May 2022 03:16:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B490C385AC; Thu, 5 May 2022 03:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651720593; bh=EUd+FQNjVhYPHngnfqRNiGUw9qP+rE/n5F5xlcFB4Ak=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=osKma1W+URS/BXiFLBUBrRLnfzM0rDplolvKg/BjR0bm3FHE5uE+C2NU708HyQ89F CUBMXtrBVEFTjucpC/AcE9N5QZD/rh2rdkLHVGk1nmdA00hBYPtc0YVPQLpGlxuWxW URodyeuI0ii3rwQ9mY/rrbZFZpr0IR5QHL9+1aPbae/Nc95nCjEQ+xEGAUmIkHs+NU KyGuFyN3bS91qsRcJVr6RbnCwEOCKezOJhdogyy9UZjTJ8aH+HboHARRWS9KMgJMRv qrn59pYhUlQ/5DWID99rUS7REILjpq0l+CWu5/Ko3C7/+oxBNC3AnRyGqzyGcEIsvk ndS1OFXM1iydg== Date: Wed, 4 May 2022 20:16:32 -0700 From: Jakub Kicinski To: Maximilian Heyne Cc: Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Paolo Abeni , , , Subject: Re: [PATCH net-next v2] drivers, ixgbe: show VF statistics Message-ID: <20220504201632.2a41a3b9@kernel.org> In-Reply-To: <20220503150017.16148-1-mheyne@amazon.de> References: <20220503150017.16148-1-mheyne@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 3 May 2022 15:00:17 +0000 Maximilian Heyne wrote: > + for (i = 0; i < adapter->num_vfs; i++) { > + ethtool_sprintf(&p, "VF %u Rx Packets", i); > + ethtool_sprintf(&p, "VF %u Rx Bytes", i); > + ethtool_sprintf(&p, "VF %u Tx Packets", i); > + ethtool_sprintf(&p, "VF %u Tx Bytes", i); > + ethtool_sprintf(&p, "VF %u MC Packets", i); > + } Please drop the ethtool stats. We've been trying to avoid duplicating the same stats in ethtool and iproute2 for a while now.