Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1898180rwd; Thu, 25 May 2023 21:18:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IyB7grlPKMdN0sQ7YqpCQOEHvJV4WUZUDl+SGq3QIZWX8nnvSnL9WRfz/IKHPLHehKfOX X-Received: by 2002:a05:6a20:3d1f:b0:10c:322:72d5 with SMTP id y31-20020a056a203d1f00b0010c032272d5mr500443pzi.23.1685074721934; Thu, 25 May 2023 21:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685074721; cv=none; d=google.com; s=arc-20160816; b=F7LEbUOQJG27yMIxsuNK+ZqwhJ9dYZlYC8FHHsm/wMi8cqPIRDUhmFqYKF8tZafNgM wciNg7yLBJ5LpUyOZw8F0v8Kvt7dJWCftCOtAcv4D/BrC5+RdltobKNeywMMt/VUzTDa y07mZmnuRFPCWsAND01EldlElsXRotilp1vLR3X7NOzb0HGR33+Bzdfp22eqLGUEhoOp QrQO3G43BQU/pawDujXaliTNVfaoNqvbzUsC9A+4oQXuT/QMSaYCX3NVve0+GWTGZ5uo /x4bgV8CgY4Jubhfl1R1df6oyjETzD9/8pStLOeW2kFaxjZX8CdqE7EehoJJ/MqiyR9i IaCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=7haR3JxmlZqeRUT11FurDDMCaLB6GHxby4Cv4crBUmo=; b=EGqfHotOzCfGcqf37YoSrKrCtGScuGgqyVLqQVJKJ//abQHqraRuUKlHVLgBeStMJ9 EARdiasdnJcID6mM3yv0JzW9/4V9zRnLoHiI0cfj0uUkgQCJJ9o934M8ZDslO5xK0eZS +QP7WrGgKoI9AV7ulOg8O54v9D2qkaJuHOWPBZBfBdSpOYzP1Y7fVGCDaxbFGqEQI25Q 2kq3zhA7MjtLkzxrGss7SptEv7GLEajvMG52u1j4rLZzxRL/nFjswHX853tb6E29LnKU rXxez1rYQXO6xb2D86imhGumNQYnYQafpORpGK1BwHwN9m6VYldw9/T+IGxAVSxTDUEY 8wVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FIl7fGnd; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o25-20020a637319000000b005303b739292si2888797pgc.702.2023.05.25.21.18.27; Thu, 25 May 2023 21:18:41 -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=@kernel.org header.s=k20201202 header.b=FIl7fGnd; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229981AbjEZEK2 (ORCPT + 99 others); Fri, 26 May 2023 00:10:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbjEZEKX (ORCPT ); Fri, 26 May 2023 00:10:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D61E183 for ; Thu, 25 May 2023 21:10:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9E1364CA8 for ; Fri, 26 May 2023 04:10:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 0D1A0C433A7; Fri, 26 May 2023 04:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685074221; bh=JQyCrb/AS2AU8eNQv+rZMtDQP68aB0ijNJNGaDOoPzg=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=FIl7fGndcDdMNTUUBjQ/lxk9ckLrCRUIBlDx3quOHau9ufxJApcUj8W88eIZFB7ow NPV4ejdISGmoGjkF9LzOSCCTD1DNzvOlNLaGPJHAgv22iI5Eu+153JBshgoDraOwj+ 26yIfSIWsmdNoblJnu+D4wyEOyUBKpQDXYPMXboptdow27omZLy4+TcuKJtobn8EAO 31bcAsT+EDqcob6emXWeyzLwkrdjSGfxbcG8PlGWfZELjdd8OIszgA4N9DbwSURSjn PHD3cfMoyzWS4u65abuCoxAtadl/sspFPWIR9Qe+rGa3utWna40RTLLUBctKwYOD9C 2ErQTwwp9jODQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id E10A5E4F138; Fri, 26 May 2023 04:10:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net: stmmac: fix call trace when stmmac_xdp_xmit() is invoked From: patchwork-bot+netdevbpf@kernel.org Message-Id: <168507422091.22221.15153316764967144660.git-patchwork-notify@kernel.org> Date: Fri, 26 May 2023 04:10:20 +0000 References: <20230524125714.357337-1-wei.fang@nxp.com> In-Reply-To: <20230524125714.357337-1-wei.fang@nxp.com> To: Wei Fang Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, pabeni@redhat.com, mcoquelin.stm32@gmail.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, sdf@google.com, gerhard@engleder-embedded.com, lorenzo@kernel.org, simon.horman@corigine.com, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 24 May 2023 20:57:14 +0800 you wrote: > From: Wei Fang > > We encountered a kernel call trace issue which was related to > ndo_xdp_xmit callback on our i.MX8MP platform. The reproduce > steps show as follows. > 1. The FEC port (eth0) connects to a PC port, and the PC uses > pktgen_sample03_burst_single_flow.sh to generate packets and > send these packets to the FEC port. Notice that the script must > be executed before step 2. > 2. Run the "./xdp_redirect eth0 eth1" command on i.MX8MP, the > eth1 interface is the dwmac. Then there will be a call trace > issue soon. Please see the log for more details. > The root cause is that the NETDEV_XDP_ACT_NDO_XMIT feature is > enabled by default, so when the step 2 command is exexcuted > and packets have already been sent to eth0, the stmmac_xdp_xmit() > starts running before the stmmac_xdp_set_prog() finishes. To > resolve this issue, we disable the NETDEV_XDP_ACT_NDO_XMIT > feature by default and turn on/off this feature when the bpf > program is installed/uninstalled which just like the other > ethernet drivers. > > [...] Here is the summary with links: - [net] net: stmmac: fix call trace when stmmac_xdp_xmit() is invoked https://git.kernel.org/netdev/net/c/ffb3322181d9 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html