From patchwork Thu Aug 12 21:42:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 496445 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 EFE2EC4338F for ; Thu, 12 Aug 2021 21:42:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CFA4760C3F for ; Thu, 12 Aug 2021 21:42:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234172AbhHLVnN (ORCPT ); Thu, 12 Aug 2021 17:43:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:53884 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbhHLVnK (ORCPT ); Thu, 12 Aug 2021 17:43:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E382F60C3F; Thu, 12 Aug 2021 21:42:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628804565; bh=++ximgZsFmq/gTDdoy48gwE8EhsH8hnlk+d0uc99EOo=; h=From:To:Cc:Subject:Date:From; b=rxHiUW5Q3R9bPirIzfAmMFXZjkA/WY8w6CX3+MK6u45yxuLtBPErICte+nM7R+7W7 LrgOEVddvHwHdRVkjs7w7oNuukIkTTIOpt0ZC0dl4e2COWIKJ8TzK/rQ2f0GWfziJ2 +mjpAqt8pBMwtv6SeDoi+XH/cu4ZAqcBZObR2N8CJ6lEbdPHjqoI5C/k+DW2KIDYwC yxrMKTwGNlGy/JXV2xXLYUpJs1Szf4M6rKrjkfDE0zLckOdDP6iUsImdQynPTt/1zO fEffN6OtyQHvAfPcaoyXcdyV++0HvfRb+vm8N6lcImDm6OAkcZWwTJMjnAw0HYvNGn W3o16dD07Cfug== From: Jakub Kicinski To: davem@davemloft.net Cc: netdev@vger.kernel.org, michael.chan@broadcom.com, prashant@broadcom.com, eddie.wai@broadcom.com, huangjw@broadcom.com, gospo@broadcom.com, edwin.peer@broadcom.com, Jakub Kicinski Subject: [PATCH net v3 0/4] bnxt: Tx NAPI disabling resiliency improvements Date: Thu, 12 Aug 2021 14:42:38 -0700 Message-Id: <20210812214242.578039-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 A lockdep warning was triggered by netpoll because napi poll was taking the xmit lock. Fix that and a couple more issues noticed while reading the code. Jakub Kicinski (4): bnxt: don't lock the tx queue from napi poll bnxt: disable napi before canceling DIM bnxt: make sure xmit_more + errors does not miss doorbells bnxt: count Tx drops drivers/net/ethernet/broadcom/bnxt/bnxt.c | 98 ++++++++++++++--------- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 + 2 files changed, 62 insertions(+), 37 deletions(-) Reviewed-by: Edwin Peer