Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27413443rwd; Tue, 4 Jul 2023 02:35:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlHkBBjJ5u35JSCGs3qHdL8xrqIjGuv6BaZqLaY//33Qxcn7ru60IaylQYJ0dNiMSUEcXhbK X-Received: by 2002:a17:90a:d481:b0:262:ded7:63d with SMTP id s1-20020a17090ad48100b00262ded7063dmr11502205pju.17.1688463327478; Tue, 04 Jul 2023 02:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688463327; cv=none; d=google.com; s=arc-20160816; b=Iz5G/01ZCGHZwnPQTd2qn6m8tl3dJEidbR0ytglkwokfBLpni/Q2HH4qGXdhBw/cbS G7NL7GFG9L+bx3qZoJjlNNeoLvTnVMbGI58BvzLt2FiIUhpjAJl8CcyEwIAY/bAofydz yOBuT+ABKhUOIs5Z7iaFiiQ/tykt/oVeft26vPfWcz6azHyhxtNMx8HKcbLzdwfwpJqi BfOi4gG6HkrGuZ64Uypu9Kt8tIM3leNknWmvH7ogkshFCJs6E1P526t2YGJf+/DWZOmd o2WFcHII1PBUWNqkQHaXBwIze/AxAdS2fOHWwfL4qsR6HbeM6/Rm5+PPo/LA0FKxrnc0 xVHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Jo4utTOFZlOpmYZQpJZ1w5TonydZxH/5QRh2ywOl8/s=; fh=hyhG05BMozguCC+yBt1iAo6TtqB0sOwK2eu+vMmT8pU=; b=C50FWD3A1FMo/lu1VPV1pAZ8bUH8UFsGJEruz8BnhQ+uhD6VFs0XQzqOBiayR0u4jZ pWl8w6a8aaBTUgPcp49puXC4eL4pCz4UUm9IjqdsKSD3nor3IyrT0mwFiG/cDJkFaEeo 9ZtLBEzENFBQDV3aIzDsSM1sDDvR78k3UTMSO+9IcdLdQ29QGcTuDezrPE1QgLh6olmN i0Hb3nzR20Rr8Mgw+0s1vBRQZhkJM3imc8lHWi75jRwLlWAvYpPUbG6ibWvJXLLjLJsy yFF2z42ehCV4oz8cxxH/l6LGJDSTdQTZHtpJcrRy3jnGjKK27xaji5QHcMGvKQRVDfOC uUcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=FRZN8vYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a17090ac20d00b00263054d093fsi15391463pjt.155.2023.07.04.02.35.15; Tue, 04 Jul 2023 02:35:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=FRZN8vYP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231332AbjGDIxi (ORCPT + 99 others); Tue, 4 Jul 2023 04:53:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231223AbjGDIxg (ORCPT ); Tue, 4 Jul 2023 04:53:36 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABB961A2; Tue, 4 Jul 2023 01:53:34 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id d2e1a72fcca58-668709767b1so2880425b3a.2; Tue, 04 Jul 2023 01:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688460814; x=1691052814; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Jo4utTOFZlOpmYZQpJZ1w5TonydZxH/5QRh2ywOl8/s=; b=FRZN8vYPM2rFBLciNSfH259E1rj5uWQ4N4dPNgzNf4y0Z0scqWSi+oJUQUZrEVhAb/ oOoWMujAalNciaipXXKIIgQNajnj9DJ2RMd8XkLg/KKHHDbQMW90C5SIG1lLPk2Uvtyn RKIoSo9YkuScoN/b1tbRCvkF9pSfog438/tBKICpfubxAVuSGSeaPkNzS0o/Jk5mdRPc su+YmmdRBgQddFzkvzXR83VAoyt2W8nKG7E8j85ITsfihI+AbZmumzPoO6gGBA32mU90 4v6XsIYnVHhOPdkMHSULuCPk8/ra2/1CnGBg67NRvEykRkHJmdtEESuFVHA0teApHlwf 9OXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688460814; x=1691052814; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Jo4utTOFZlOpmYZQpJZ1w5TonydZxH/5QRh2ywOl8/s=; b=cPFfIEC35g+b06HOtYx7VkDWrFTF13Y6hjusAjZyU7wTPe0y49sMzkPJw094qQDN8a G7jOVIQguPh5EyFQGoGHxuAZNL0dRR8IgvwCrf3vPdApizKFzKygI3Rlq6Gv/r5j7kLs gd3FOemQCpJjcrug49sP1VEE8gvVbrJohn5HUaUhZMB1Gzpnm/HJ5kODm+VDvthbfg9D siUiTZil2mdqJLjVXqjVekPxrF1V4tc+eqPY6qUsgsaCJTM7reV7zPqu029FE7NAWCa0 exwUylzpan/MVW8t7cV5VRSVmjT/6u8N+Tj6GO7UwpB9UYMHsCdRIvlf6BsautI2LAD2 7g/Q== X-Gm-Message-State: ABy/qLZBuVnbpt12JtlUdeZICAQqj7qzWJkT6ySQIFkwJmOHgwdMUhDI 2Gz2haudZjXDPfmbxVGBi4b/xUs6DI2cQ66F X-Received: by 2002:a05:6a00:998:b0:673:8dfb:af32 with SMTP id u24-20020a056a00099800b006738dfbaf32mr13158303pfg.26.1688460814142; Tue, 04 Jul 2023 01:53:34 -0700 (PDT) Received: from localhost.localdomain ([81.70.217.19]) by smtp.gmail.com with ESMTPSA id j24-20020a63cf18000000b0054ff075fb31sm15996382pgg.42.2023.07.04.01.53.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 01:53:33 -0700 (PDT) From: menglong8.dong@gmail.com X-Google-Original-From: imagedong@tencent.com To: michael.chan@broadcom.com Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Menglong Dong Subject: [PATCH net-next] bnxt_en: use dev_consume_skb_any() in bnxt_tx_int Date: Tue, 4 Jul 2023 16:52:36 +0800 Message-Id: <20230704085236.9791-1-imagedong@tencent.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Menglong Dong Replace dev_kfree_skb_any() with dev_consume_skb_any() in bnxt_tx_int() to clear the unnecessary noise of "kfree_skb" event. Signed-off-by: Menglong Dong --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index f42e51bd3e42..bcd0f0173cb5 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -685,7 +685,7 @@ static void bnxt_tx_int(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts) next_tx_int: cons = NEXT_TX(cons); - dev_kfree_skb_any(skb); + dev_consume_skb_any(skb); } WRITE_ONCE(txr->tx_cons, cons); -- 2.40.1