From patchwork Tue Dec 12 00:51:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13488265 X-Patchwork-Delegate: kuba@kernel.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="bCiRRHDC" Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FB4ABE for ; Mon, 11 Dec 2023 16:51:59 -0800 (PST) Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-77f35009e78so303632985a.1 for ; Mon, 11 Dec 2023 16:51:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1702342318; x=1702947118; darn=vger.kernel.org; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=JJBMsv3FVn06uzjMtoqqWU5dW2ns332Qp8sF2/jzitk=; b=bCiRRHDC3UhEakEevsxzuLQ/1olQdIEgNMWzw4hBRwWcTcy3qisIjaHRL8TewdIAGk qdR+DfM7RQnc/vql3ynUSudVvAS4giqkyAAxWE2bIsR6RHwTq3YzoHIVrAPWYFN9b7fY CsAVHhHOaUZs1nxOsFe5LgIwOjzd4koCLJfvw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702342318; x=1702947118; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JJBMsv3FVn06uzjMtoqqWU5dW2ns332Qp8sF2/jzitk=; b=NjGMhA60NKVwjSMZvTB9SEOQRRUkx3Mb/ISjM1FoihhBryqI/L9FE2CRwaiAV/Ife5 h2gLp3X1AgkATcvtB7vr8hSqqVLMK3ZgxwiOKLGL1g8JRsUvt06VfntDaMTPqQlGVOzD bFP2qTjRw7o5CUfG1mTsFwDYu0ZKXrgpj2PThF/HJjuBvPHRdob7dVVgg0zl3owOkIR6 2rc0XxushT+ePAN/sm8O5rrrziUYLYb3p28CE6JrN06WDnoZQOTZ668MrVgtxaVho+1I ghB7FOF6J9Vzaez6GTgn1p4xnezigOqYQnuxu0fgWu23489yeZ+16ncgMciog3VFp5no 80TA== X-Gm-Message-State: AOJu0YzSerI/qnQTaylx9wVTx1c4aQQox0anaf1VX8ttplsJB2Kvlf1e IMSWOyt84Bpk92tGHQnwE7G1Sg== X-Google-Smtp-Source: AGHT+IFDnqGeMTN31a9a/LwGsRbOn9ka7r1yPZMk/goWdNQLP/rSOsu7+zvMUkhRWtQm6Aj9ch51lw== X-Received: by 2002:ac8:58c6:0:b0:425:a72b:9a69 with SMTP id u6-20020ac858c6000000b00425a72b9a69mr7695260qta.20.1702342318240; Mon, 11 Dec 2023 16:51:58 -0800 (PST) Received: from lvnvda5233.lvn.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id r5-20020ac87945000000b00423ea1b31b3sm3619664qtt.66.2023.12.11.16.51.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2023 16:51:57 -0800 (PST) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, gospo@broadcom.com, Damodharam Ammepalli Subject: [PATCH net-next 10/13] bnxt_en: add rx_filter_miss extended stats Date: Mon, 11 Dec 2023 16:51:19 -0800 Message-Id: <20231212005122.2401-11-michael.chan@broadcom.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20231212005122.2401-1-michael.chan@broadcom.com> References: <20231212005122.2401-1-michael.chan@broadcom.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org From: Damodharam Ammepalli rx_filter_miss counter is newly added to the rx_port_stats_ext stats structure for newer chips. Newer firmware will return the structure size that includes this counter. Add this entry to the bnxt_port_stats_ext_arr array and the ethtool -S code will pick up this counter if it is supported. Signed-off-by: Damodharam Ammepalli Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c index bb9cab821587..45ce7e2e3662 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c @@ -461,6 +461,7 @@ static const struct { BNXT_RX_STATS_EXT_DISCARD_COS_ENTRIES, BNXT_RX_STATS_EXT_ENTRY(rx_fec_corrected_blocks), BNXT_RX_STATS_EXT_ENTRY(rx_fec_uncorrectable_blocks), + BNXT_RX_STATS_EXT_ENTRY(rx_filter_miss), }; static const struct {