From patchwork Fri Aug 27 15:27:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 503669 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A46FDC432BE for ; Fri, 27 Aug 2021 15:27:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7B35A60FD9 for ; Fri, 27 Aug 2021 15:27:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245467AbhH0P2n (ORCPT ); Fri, 27 Aug 2021 11:28:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:43474 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245384AbhH0P2h (ORCPT ); Fri, 27 Aug 2021 11:28:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F653600AA; Fri, 27 Aug 2021 15:27:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630078068; bh=YXRdDDcJ+D1TbZfRQcr8Hi/1iYMg6Oy2sBDAOrOjHlI=; h=From:To:Cc:Subject:Date:From; b=kLs1tsERYLpj8nzB3QngPuhebYffLvthHVwkM2qRfRZy9NBQBM2APGfYree9oIxeK VEDCjfXSavqmL1HBstmuHu6eiLTzPH5CKkFGtsF0ON8idyCzY29sVBPVxERrYBXn5Q A+c/iXjhqRP+K2qYKwADAzk9CAKA0vsY+2SnZ89ZW5z/VTmkkLUaWDzjMoOQI7DLUE OgYKR7FVyYmWRJNui9RVqIJIyZcHkXCRR0K0B8yFjWzaWfzNNK685oKiyNVkXUJgEb gxtkQzOFZPuu71DcXR/1w8bTypZd3b8Y7F7tYM7soDFV5xiklSbPaY4vN7JOUeDga1 1vpu1u3AAXRqg== From: Jakub Kicinski To: davem@davemloft.net, michael.chan@broadcom.com Cc: netdev@vger.kernel.org, edwin.peer@broadcom.com, Jakub Kicinski Subject: [PATCH net-next v4 0/2] bnxt: add rx discards stats for oom and netpool Date: Fri, 27 Aug 2021 08:27:43 -0700 Message-Id: <20210827152745.68812-1-kuba@kernel.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Drivers should avoid silently dropping frames. This set adds two stats for previously unaccounted events to bnxt - packets dropped due to allocation failures and packets dropped during emergency ring polling. v4: drop patch 1, not needed after simplifications Jakub Kicinski (2): bnxt: count packets discarded because of netpoll bnxt: count discards due to memory allocation errors drivers/net/ethernet/broadcom/bnxt/bnxt.c | 18 +++++++++++++++++- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 2 ++ .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 4 ++++ 3 files changed, 23 insertions(+), 1 deletion(-) Reviewed-by: Michael Chan Reviewed-by: Edwin Peer