[{"id":3676644,"web_url":"http://patchwork.ozlabs.org/comment/3676644/","msgid":"<20260413105110.695930-2-horms@kernel.org>","list_archive_url":null,"date":"2026-04-13T10:51:11","subject":"Re: [Intel-wired-lan] [PATCH iwl-net v2 3/6] ixgbe: call\n ixgbe_setup_fc() before fc_enable() after NVM update","submitter":{"id":82748,"url":"http://patchwork.ozlabs.org/api/people/82748/","name":"Simon Horman","email":"horms@kernel.org"},"content":"From: 'Simon Horman' <horms@kernel.org>\n\nThis is an AI-generated review of your patch. The human sending this\nemail has considered the AI review valid, or at least plausible.\nFull review at: https://sashiko.dev\n---\nixgbe: call ixgbe_setup_fc() before fc_enable() after NVM update\n\nThis commit adds a call to hw->mac.ops.setup_fc() before fc_enable() in the\nwatchdog task when the link comes up, aiming to prevent MDD events after\nan NVM update by reprogramming flow-control autonegotiation.\n\n> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n> --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n> +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n> @@ -8031,7 +8031,14 @@ static void ixgbe_watchdog_update_link(struct ixgbe_adapter *adapter)\n>  \t\tpfc_en |= !!(adapter->ixgbe_ieee_pfc->pfc_en);\n>  \n>  \tif (link_up && !((adapter->flags & IXGBE_FLAG_DCB_ENABLED) && pfc_en)) {\n> -\t\thw->mac.ops.fc_enable(hw);\n> +\t\t/* Re-program flow-control autoneg before applying the result.\n> +\t\t * If setup_fc() fails its output is invalid; skip fc_enable()\n> +\t\t * to avoid committing stale capability bits that trigger MDD.\n> +\t\t */\n> +\t\tif (hw->mac.ops.setup_fc && hw->mac.ops.setup_fc(hw))\n\nWill calling setup_fc() unconditionally from the link-up watchdog cause an\ninfinite link flapping loop on 82599 backplane interfaces?\n\nFor backplane interfaces like KX/KX4/KR, setup_fc() resolves to\nixgbe_setup_fc_generic(), which then calls hw->mac.ops.prot_autoc_write().\n\nOn 82599 hardware, this calls prot_autoc_write_82599(), which unconditionally\nexecutes ixgbe_reset_pipeline_82599().\n\nSince ixgbe_reset_pipeline_82599() toggles the IXGBE_AUTOC_AN_RESTART bit,\nwould this drop the link immediately to restart Auto-Negotiation?\n\nIf the link drops, it would trigger a link-down LSC interrupt. Once\nAuto-Negotiation completes, the link would come back up, triggering another\nlink-up LSC interrupt. This would cause ixgbe_watchdog_update_link() to run\nagain, repeating the cycle.\n\n> +\t\t\te_warn(drv, \"setup_fc failed, skipping fc_enable\\n\");\n> +\t\telse\n> +\t\t\thw->mac.ops.fc_enable(hw);\n>  \t\tixgbe_set_rx_drop_en(adapter);\n>  \t}","headers":{"Return-Path":"<intel-wired-lan-bounces@osuosl.org>","X-Original-To":["incoming@patchwork.ozlabs.org","intel-wired-lan@lists.osuosl.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","intel-wired-lan@lists.osuosl.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256\n header.s=default header.b=pCksf7Ke;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=140.211.166.136; helo=smtp3.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvPNh4w3zz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 20:51:48 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 6589860DE8;\n\tMon, 13 Apr 2026 10:51:46 +0000 (UTC)","from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id GrNBs5d642_I; Mon, 13 Apr 2026 10:51:45 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 060BE60DE3;\n\tMon, 13 Apr 2026 10:51:45 +0000 (UTC)","from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by lists1.osuosl.org (Postfix) with ESMTP id 41E2D237\n for <intel-wired-lan@lists.osuosl.org>; Mon, 13 Apr 2026 10:51:43 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 3F2D860DDD\n for <intel-wired-lan@lists.osuosl.org>; Mon, 13 Apr 2026 10:51:43 +0000 (UTC)","from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id SAvsy0GL1kQD for <intel-wired-lan@lists.osuosl.org>;\n Mon, 13 Apr 2026 10:51:42 +0000 (UTC)","from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31])\n by smtp3.osuosl.org (Postfix) with ESMTPS id 6AEC960DD0\n for <intel-wired-lan@lists.osuosl.org>; Mon, 13 Apr 2026 10:51:42 +0000 (UTC)","from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n by sea.source.kernel.org (Postfix) with ESMTP id CB44C42B62;\n Mon, 13 Apr 2026 10:51:41 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 8598BC116C6;\n Mon, 13 Apr 2026 10:51:40 +0000 (UTC)"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp3.osuosl.org 060BE60DE3","OpenDKIM Filter v2.11.0 smtp3.osuosl.org 6AEC960DD0"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org;\n\ts=default; t=1776077505;\n\tbh=c/zCcmkBDzgLfWvMhNtkNpY35IU7nx2tOwIIDknRjsc=;\n\th=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t From;\n\tb=pCksf7Kei4k8m7gEPJ/kORVYEPT9j4/kN5DUTdm139W/NMoh4m9KAMuCwwTQntm62\n\t VaZ+0MMawXMTcNkS9DzVk6FUmXKgyIQ9UQPoAM/oIFyNftNFHu7fInSgr4ax8Yb4z1\n\t yVhsmTeu7pEtY8yL6qkaNFNbW4itLVSQlEy36wmpRvdwKgfWXh6N+hJdJKUTRn5ii5\n\t 5vekaduSrDzDHaVHAMBZCURtNkbbq+RQv/ASIM1eoT6E15zko2lSQKlmkh8WKD27ny\n\t ZOKV83vWZe3Wec8bVtgAZ1XyEfUVQ3cBSvHSorNir4khlzM+ZKDZPY3qCmFgicqb1l\n\t 9+U8ps9RPX9Iw==","Received-SPF":"Pass (mailfrom) identity=mailfrom; client-ip=172.234.252.31;\n helo=sea.source.kernel.org; envelope-from=horms@kernel.org;\n receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp3.osuosl.org 6AEC960DD0","From":"Simon Horman <horms@kernel.org>","To":"aleksandr.loktionov@intel.com","Cc":"'Simon Horman' <horms@kernel.org>, intel-wired-lan@lists.osuosl.org,\n anthony.l.nguyen@intel.com, netdev@vger.kernel.org","Date":"Mon, 13 Apr 2026 11:51:11 +0100","Message-ID":"<20260413105110.695930-2-horms@kernel.org>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260408131154.2661818-4-aleksandr.loktionov@intel.com>","References":"<20260408131154.2661818-4-aleksandr.loktionov@intel.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Mailman-Original-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple;\n d=kernel.org; s=k20201202; t=1776077501;\n bh=bQAYLLneMNI9jJ1/diAoWNp9Xyr3yX5LkVwGEeYI2S8=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=ckYRyYKK5bD0iIR40GZXA42qZENIZOJr1ylDSGcf3h6BYfOwxcW65R74jNxFAYBNU\n ZWqgQRz2Hq7TvA1vfxbF4OxSvEaLiKyaih/RJwUHxYWCPxD/RP+WwXrjeKO5CcnkAt\n WfE9fv6F3SvrVD7BWJ7XkchBBcvg9XlKTAnOmRAcwhiqgE6xIANo794HiqRRzPLX2z\n lNzeJ1RsHfBz/Vt1cfm482NV4wyzVHONFRewnL04Rro8al9N3YaJckxWZPmAJXNZjT\n M6vL6qY1DV8pI2i3OmQS7BsQxk6DMAy3g8Ax9gpQpNWGOAtCQjn/jUtUAdsIs9j89C\n HvXelyWsubkxg==","X-Mailman-Original-Authentication-Results":["smtp3.osuosl.org;\n dmarc=pass (p=quarantine dis=none)\n header.from=kernel.org","smtp3.osuosl.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.a=rsa-sha256 header.s=k20201202 header.b=ckYRyYKK"],"Subject":"Re: [Intel-wired-lan] [PATCH iwl-net v2 3/6] ixgbe: call\n ixgbe_setup_fc() before fc_enable() after NVM update","X-BeenThere":"intel-wired-lan@osuosl.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Intel Wired Ethernet Linux Kernel Driver Development\n <intel-wired-lan.osuosl.org>","List-Unsubscribe":"<https://lists.osuosl.org/mailman/options/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>","List-Archive":"<http://lists.osuosl.org/pipermail/intel-wired-lan/>","List-Post":"<mailto:intel-wired-lan@osuosl.org>","List-Help":"<mailto:intel-wired-lan-request@osuosl.org?subject=help>","List-Subscribe":"<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>","Errors-To":"intel-wired-lan-bounces@osuosl.org","Sender":"\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"}}]