From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 53FA2431A0 for ; Thu, 19 Oct 2023 02:00:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D722402C8; Thu, 19 Oct 2023 02:00:15 +0200 (CEST) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mails.dpdk.org (Postfix) with ESMTP id 1EFCB40291 for ; Thu, 19 Oct 2023 02:00:14 +0200 (CEST) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4064876e8b8so74524835e9.0 for ; Wed, 18 Oct 2023 17:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697673614; x=1698278414; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=q3pa9OQIhOTax41gO1sdZ9yHc1HguZ4sUmxZXfkWiLg=; b=ajJNvujaIB81sJf0mHnn43JLnPXyWrowldPm/fCrl5k0l5VZeAFlVW8I/c7Bhm6BWM ly4n7cr4GEmpJURcmNya8GVf3raJJ5/cLxWs5EcCVGLe15i/raOnwnwexcIN5vysTiVa AESD5mEUMPxBnUQN9dFaOhDqZyV/cR/LjiYinUyTWLc09kKtZpMC3To8otl0b/PwDmQF 8D83Hy7AOjn7cMWjFZyQMGamMhC17YBl4+kAw+JNSBq7Myoi4qweC0sIIRiJkBQr+9O/ SxqcRy0/2drza0pjhYOC2y7iPFNS2Zd18LrZYFe0s0VKdEM01ynpfHwsA5gyVvxp/+MR kUew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697673614; x=1698278414; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q3pa9OQIhOTax41gO1sdZ9yHc1HguZ4sUmxZXfkWiLg=; b=lGAvg9D8+ktNCCZ5jfo/DEq3AaO4kTJC/yoRmi+/oAF1eI/SbOsnXN9wNqVQUK6ShL qmPIA5uyie2bAADy1+HZzqONE03U5YZ+PxBz6KXFNcOtBFjT/FCnOQ39LLS/aitDqB8+ jrZpkoIhKYu8HZ9JQ8rzAR6IhvJxPJhMki9mGOcstGG472n4A1hE07KKzvmGX7qo/aK2 SDYGSNo8Qy5SZbxH26lqhQkwx967/5NH92q6QbxXB1DawBuQQe8PFzg3M5J2WPkm0o7T tQUt7lUr6XIqsmNA8gj8Iyw7INHPLrPyLRc+0H6I8taghMMp8nZAqcVVARG9rDak0keO YsuQ== X-Gm-Message-State: AOJu0Yw/PsyCqgILV8K9iWKgdZrjgnqvVvlcOZrG3ePu686CBgI6MaxK e/vwZftAbRHrTCbQtf1VoG2p4970br3tNg== X-Google-Smtp-Source: AGHT+IFj0oGcrlpwscgC/C7WkRoQNbNkurgll5vuS/KmlhVfaXZ7p0WhVF6sUHG3wRwxYjlEdT+ydQ== X-Received: by 2002:a05:600c:1f8d:b0:405:36d7:4579 with SMTP id je13-20020a05600c1f8d00b0040536d74579mr580590wmb.28.1697673613662; Wed, 18 Oct 2023 17:00:13 -0700 (PDT) Received: from localhost ([137.220.119.58]) by smtp.gmail.com with ESMTPSA id bg14-20020a05600c3c8e00b00401e32b25adsm3025872wmb.4.2023.10.18.17.00.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 17:00:13 -0700 (PDT) From: luca.boccassi@gmail.com To: Jiawen Wu Cc: dpdk stable Subject: patch 'net/txgbe: reconfigure MAC Rx when link update' has been queued to stable release 20.11.10 Date: Thu, 19 Oct 2023 00:59:03 +0100 Message-Id: <20231018235930.3144-14-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231018235930.3144-1-luca.boccassi@gmail.com> References: <20231018235930.3144-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 20.11.10 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/21/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/cc0f2200f0d8ae5175dc8185245493d24bb1c667 Thanks. Luca Boccassi --- >From cc0f2200f0d8ae5175dc8185245493d24bb1c667 Mon Sep 17 00:00:00 2001 From: Jiawen Wu Date: Thu, 28 Sep 2023 17:47:52 +0800 Subject: [PATCH] net/txgbe: reconfigure MAC Rx when link update [ upstream commit 950a6954df134f8bff41fc7ad541a9c9730a4201 ] Fix the bug that after setting flow control parameters, link status change (for example, hot-plug SFP module) causes the port to no longer receive packets. Fixes: 0c061eadec59 ("net/txgbe: add link status change") Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_ethdev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/txgbe/txgbe_ethdev.c b/drivers/net/txgbe/txgbe_ethdev.c index c7df5a9718..b4d023aefc 100644 --- a/drivers/net/txgbe/txgbe_ethdev.c +++ b/drivers/net/txgbe/txgbe_ethdev.c @@ -2540,6 +2540,11 @@ txgbe_dev_link_update_share(struct rte_eth_dev *dev, break; } + /* Re configure MAC RX */ + if (hw->mac.type == txgbe_mac_raptor) + wr32m(hw, TXGBE_MACRXFLT, TXGBE_MACRXFLT_PROMISC, + TXGBE_MACRXFLT_PROMISC); + return rte_eth_linkstatus_set(dev, &link); } -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-10-19 00:28:56.937952287 +0100 +++ 0014-net-txgbe-reconfigure-MAC-Rx-when-link-update.patch 2023-10-19 00:28:56.217804521 +0100 @@ -1 +1 @@ -From 950a6954df134f8bff41fc7ad541a9c9730a4201 Mon Sep 17 00:00:00 2001 +From cc0f2200f0d8ae5175dc8185245493d24bb1c667 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 950a6954df134f8bff41fc7ad541a9c9730a4201 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index 479cd810f8..e789e34c01 100644 +index c7df5a9718..b4d023aefc 100644 @@ -22 +23 @@ -@@ -2957,6 +2957,11 @@ txgbe_dev_link_update_share(struct rte_eth_dev *dev, +@@ -2540,6 +2540,11 @@ txgbe_dev_link_update_share(struct rte_eth_dev *dev,