Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36530751rwd; Tue, 11 Jul 2023 02:09:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlHeSDx076h+9lWw3sh8K1umVPZh/A2e0AIq2Ij4GRUD9kfQB1Pa0T8G7YVZeEbd8ABYYzZN X-Received: by 2002:a17:902:d2cd:b0:1b8:1b79:a76d with SMTP id n13-20020a170902d2cd00b001b81b79a76dmr13483902plc.44.1689066583117; Tue, 11 Jul 2023 02:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689066583; cv=none; d=google.com; s=arc-20160816; b=BHjBpeSIt+O4mCFi15VfCsTe/tJuOfsl8rEFfszejsZK17ccPkb06thR7QYGTuJAIV BdTIs3miPUIl2zhPvoy9JQgJgc3YdPLvJOVUsOHI/qNmlDMOYXV+EJn1+APeWImNEII9 JiDlUSlG640LoxO/TmeKEaoPhr7cuaJYxHXEGsCSUZ8QC2zXaAM1urSW8ADQLdK12DjT uKpD7kGwMg6GefeiRl2gvHfGjJ7aeOOaJu+YFnIFUvE4iGy4WoI7KGyMJiiPgX/o3Tz7 6MxOl1hm8JfyxQbbLdj3uVJxHGKt/wFXVlUkNFpkGtQ+6SWBcdnw5uALw3BJHgAGX8Gd SwQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7NMyJSrXr/UF/wHZuTRsTrpqjvTUJ9zAnuA38jm6aC0=; fh=AJc2Je7MUvJg1Ouqb7wgLcwUTLs8Z2rMLmPpbuKI0Yw=; b=kGZ+nYXToVxqupk21CgG/rGK8hVkafAYmcsayw0kTQ9x0bZt8iOZ7jZLqazmkjn+eJ 7jsdzdOkBQ8QNamnynKxrWi9Kij6NPoT7pDVYhkCLlx4kKwSbrQULWqSbk8LAp0QxVZz nb+kfG4Bn1cci6xJutbRXQL989EDZgzNHE1ajEb8b+b4er7v64h8sg2bNQHJ7xvAykKX J66SjeS93GNIB2pFlLYOakmSR8EckM27XOvzkil6Yjk1qBTDnEBhiq/pqIE4vM0qwskO KEEq945IqzUfOCfmMMQQxEZxNDM+z5QINus2GfQ6aLDtogvtQTF2FP2K7AzTYUUgYKLa wNMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=NR5Zil1U; 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 z2-20020a1709027e8200b001b892a54da5si1271988pla.37.2023.07.11.02.09.28; Tue, 11 Jul 2023 02:09:43 -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=NR5Zil1U; 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 S231861AbjGKIyr (ORCPT + 99 others); Tue, 11 Jul 2023 04:54:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230314AbjGKIyh (ORCPT ); Tue, 11 Jul 2023 04:54:37 -0400 Received: from mail-yw1-x1143.google.com (mail-yw1-x1143.google.com [IPv6:2607:f8b0:4864:20::1143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F2A71FD7; Tue, 11 Jul 2023 01:54:11 -0700 (PDT) Received: by mail-yw1-x1143.google.com with SMTP id 00721157ae682-577497ec6c6so58462137b3.2; Tue, 11 Jul 2023 01:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689065651; x=1691657651; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7NMyJSrXr/UF/wHZuTRsTrpqjvTUJ9zAnuA38jm6aC0=; b=NR5Zil1Ut51vJjbGpeM7hQpCxXMNddGz+wEm0nehiE7189z6LR8A7zDNYqWbGpHO7S p9vkd8+NZJ71RR3NjCItwdjSin1MNB/xjy6FKCWPM4zaP0K//BbhbkcrUoivsA1v/nX8 v0XavUEBKL8XSOkJZfC+fjFAEqiDWiG3E1c6MppayGHbXvc8LSXq+M2hIun0UXR6jH8w 6/EAekCnP6MMi8hz0wNPBQmdwn9pzugm8RVM6Z/+39NKcKgmYBToAdbcAxPPSh1hI60+ 5HLxxsfs3bceRoc2WqeI8NivG2Na0XxSFgG/De2SGnz0sE7WP55hVy06TlB3a1tPuFO5 3tQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689065651; x=1691657651; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7NMyJSrXr/UF/wHZuTRsTrpqjvTUJ9zAnuA38jm6aC0=; b=Z9ZIjJXq3Rbu5Ro0hkiC07J4l8KxByPHALcZ5qgxPSKkre5Xx+qFO8XPiRpVe4/ZiD am9T/iIw/cxkW2rtoWaYwwL9Upabz0rdkYJXz3PK+eelVsQuTwD5gnYYhaavRMHvNaM6 T5NyRXmQ4xREIxeMS+RV4AosURROWX16bhASn5MZ/Cg14GnepAPDyFcXcLehNDJI4ONW pE5D3SocX69DDeVtGM/D2yE4iXyw0HMyhqW9bts1g85Gxjjbq92CK4/zW9fH72NMAt5w G/K2hXX0A4b9rLTnRrUApmbXklr5WfU0ll8Wjl9xYImZRkdIj2sRqt2BfcojhluzFbgo 9CmA== X-Gm-Message-State: ABy/qLaITNnAvl0sGnEdQE/MnaSk2DClOybgGHlmnkC194MZHeu3uv8t LQtilSiF3//d46B5/GFXH5wcS9ra+oBpB2hf/Ug= X-Received: by 2002:a81:e94e:0:b0:577:3ad5:54de with SMTP id e14-20020a81e94e000000b005773ad554demr14516198ywm.38.1689065650689; Tue, 11 Jul 2023 01:54:10 -0700 (PDT) MIME-Version: 1.0 References: <20230710094747.943782-1-imagedong@tencent.com> <20230711063125.GA41919@unreal> In-Reply-To: <20230711063125.GA41919@unreal> From: Menglong Dong Date: Tue, 11 Jul 2023 16:53:59 +0800 Message-ID: Subject: Re: [PATCH RESEND net-next] bnxt_en: use dev_consume_skb_any() in bnxt_tx_int To: Leon Romanovsky Cc: michael.chan@broadcom.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Menglong Dong Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_BLOCKED,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 On Tue, Jul 11, 2023 at 2:31=E2=80=AFPM Leon Romanovsky w= rote: > > On Mon, Jul 10, 2023 at 05:47:47PM +0800, menglong8.dong@gmail.com wrote: > > 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. > > Can you please be more specific in the commit message what "unnecessary > noise" you reduced? OK! How about the description like this: In bnxt_tx_int(), the skb in the tx ring buffer will be freed after the transmission completes with dev_kfree_skb_any(), which will produce noise on the tracepoint "skb:kfree_skb": $ perf record -e skb:kfree_skb -a $ perf script swapper 0 [006] 5072.553459: skb:kfree_skb: skbaddr=3D0xffff88810ec47700 protocol=3D2048 location=3Ddev_kfree_skb_any_reason+0x2e reason: NOT_SPECIFIED swapper 0 [006] 5072.554796: skb:kfree_skb: skbaddr=3D0xffff8881370348e0 protocol=3D2048 location=3Ddev_kfree_skb_any_reason+0x2e reason: NOT_SPECIFIED swapper 0 [006] 5072.554806: skb:kfree_skb: skbaddr=3D0xffff888137035ae0 protocol=3D2048 location=3Ddev_kfree_skb_any_reason+0x2e reason: NOT_SPECIFIED swapper 0 [010] 5072.605012: skb:kfree_skb: skbaddr=3D0xffff8881372926e0 protocol=3D2048 location=3Ddev_kfree_skb_any_reason+0x2e reason: NOT_SPECIFIED swapper 0 [010] 5072.648249: skb:kfree_skb: skbaddr=3D0xffff8881372916e0 protocol=3D2048 location=3Ddev_kfree_skb_any_reason+0x2e reason: NOT_SPECIFIED swapper 0 [010] 5072.655732: skb:kfree_skb: skbaddr=3D0xffff8881372928e0 protocol=3D2048 location=3Ddev_kfree_skb_any_reason+0x2e reason: NOT_SPECIFIED swapper 0 [010] 5072.697115: skb:kfree_skb: skbaddr=3D0xffff8881372916e0 protocol=3D2048 location=3Ddev_kfree_skb_any_reason+0x2e reason: NOT_SPECIFIED swapper 0 [010] 5072.744718: skb:kfree_skb: skbaddr=3D0xffff8881372928e0 protocol=3D2048 location=3Ddev_kfree_skb_any_reason+0x2e reason: NOT_SPECIFIED swapper 0 [010] 5072.786947: skb:kfree_skb: skbaddr=3D0xffff8881372916e0 protocol=3D2048 location=3Ddev_kfree_skb_any_reason+0x2e reason: NOT_SPECIFIED swapper 0 [010] 5072.838535: skb:kfree_skb: skbaddr=3D0xffff8881372928e0 protocol=3D2048 location=3Ddev_kfree_skb_any_reason+0x2e reason: NOT_SPECIFIED swapper 0 [003] 5072.853599: skb:kfree_skb: skbaddr=3D0xffff888108380500 protocol=3D2048 location=3Ddev_kfree_skb_any_reason+0x2e reason: NOT_SPECIFIED Replace dev_kfree_skb_any() with dev_consume_skb_any() in bnxt_tx_int() to reduce the noise. Thanks! Menglong Dong > > > > > Signed-off-by: Menglong Dong > > --- > > drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > Thanks, > Reviewed-by: Leon Romanovsky