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 5B7A4A00C4 for ; Fri, 18 Nov 2022 00:10:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5792140F18; Fri, 18 Nov 2022 00:10:12 +0100 (CET) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by mails.dpdk.org (Postfix) with ESMTP id 63CB740F18 for ; Fri, 18 Nov 2022 00:10:11 +0100 (CET) Received: by mail-wm1-f45.google.com with SMTP id o30so2446549wms.2 for ; Thu, 17 Nov 2022 15:10:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=9Jz3HKBqBorUuuzmow/L/w989Lq8Ez0f4vvoCoQtrkk=; b=qbrcAiYAxZWB8v5wYB8QUsr27FV4hTFy92KVKA0Pxr0Lb4v2y6lhYreiB910kT+3fU xCmuqrZLbM7i/i7ebUOslOwvU6oMZ53ksTbfHe+78bm4aBvyVe3f0zO8wcGy6J6R7C+b gpIX4JiOVP/MrdOSpgG7XxcBP2OnScQ+0s6X+aSgQ/7IF3ucd+sRcYxcmcMuIXK3vsam Q7fHnV5A7g5RlVQy8VBU1/DPrJ4e41xthWuHlYO/4iUPS9/aAsEDtNReldMLWX2GFIDO 9rf07Rvf5+sDgKX6bT5MjWpZhQP8sTSVQcDdcgqg4uAMlkrj+blHTeiq0tV6jIVuLR14 8hig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=9Jz3HKBqBorUuuzmow/L/w989Lq8Ez0f4vvoCoQtrkk=; b=oQIv45O6iIDTEPj/cYOdzfthOqTq5AyjO6JEk/jxhgXYA/DFjElpOYwvstkEaeibsL ySAYKwzLLiGLWeoOHzjE/fGx46bj7w2jlAir8jsbUg2ax8etFSnREs9Q8R1xV4Qeycho M5l6zP/f29FBD5KT11LKbu48Jbs7IMQZQ6821okjDNaB4ogaJH8pQnTGVHHM7vUdF+UN pcsGMx8znjSw+KBEQtj+8StRuXH3NgurWDukqphEgT6qBoFD76KFDkAusOZEf4oKI9SP ttJKMM96u29/0uqik8eb8qmU7qmHsaPOfJOIa5KAW27zwovSztxjnOjACMOoKF/IwM0p UPxA== X-Gm-Message-State: ANoB5pkEP86zgoXsFnbdlthdrgO1Re4dsX3Zp8O9IuJnx/cAFLHwNuKz 7TTfM4kTsN/QORtSsGXiojKI3vHLW7I= X-Google-Smtp-Source: AA0mqf7OqZ5Ydf9cOLdaypZ0+OemYUgrAQxT7Qf38ucOzQ0HkDEskdYt+acA8ZDOIENb5lSWLVCpRA== X-Received: by 2002:a05:600c:3c96:b0:3cf:a457:2d89 with SMTP id bg22-20020a05600c3c9600b003cfa4572d89mr6581807wmb.20.1668726611152; Thu, 17 Nov 2022 15:10:11 -0800 (PST) Received: from localhost ([2a01:4b00:d307:1000:f1d3:eb5e:11f4:a7d9]) by smtp.gmail.com with ESMTPSA id l18-20020a05600c4f1200b003c6f3f6675bsm7523828wmq.26.2022.11.17.15.10.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 15:10:10 -0800 (PST) From: luca.boccassi@gmail.com To: Jie Wang Cc: Dukai Yuan , dpdk stable Subject: patch 'net/i40e: fix jumbo frame Rx with X722' has been queued to stable release 20.11.7 Date: Thu, 17 Nov 2022 23:08:43 +0000 Message-Id: <20221117230859.611465-19-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117230859.611465-1-luca.boccassi@gmail.com> References: <20221105171146.1520039-47-luca.boccassi@gmail.com> <20221117230859.611465-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.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/19/22. 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/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/3508b43bcc24e7caf822bab4c3b1a9146a7175b0 Thanks. Luca Boccassi --- >From 3508b43bcc24e7caf822bab4c3b1a9146a7175b0 Mon Sep 17 00:00:00 2001 From: Jie Wang Date: Thu, 10 Nov 2022 11:45:24 +0800 Subject: [PATCH] net/i40e: fix jumbo frame Rx with X722 [ upstream commit 719469f13b11dbdc921b74258f2d10bd1c5328d4 ] For NIC I40E_10G-10G_BASE_T_X722, when the port is configured with link speed, it cannot receive jumbo frame packets. Because it set maximum frame size failed when starts the port that the port link status is still down. This patch fix the error that starts the port will force set maximum frame size. Fixes: 2184f7cdeeaa ("net/i40e: fix max frame size config at port level") Signed-off-by: Jie Wang Tested-by: Dukai Yuan --- drivers/net/i40e/i40e_ethdev.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index c2d52e4acc..c5eb7ccddc 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -13141,8 +13141,13 @@ i40e_set_mac_max_frame(struct rte_eth_dev *dev, uint16_t size) enum i40e_status_code status; bool can_be_set = true; - /* I40E_MEDIA_TYPE_BASET link up can be ignored */ - if (hw->phy.media_type != I40E_MEDIA_TYPE_BASET) { + /* + * I40E_MEDIA_TYPE_BASET link up can be ignored + * I40E_MEDIA_TYPE_BASET link down that hw->phy.media_type + * is I40E_MEDIA_TYPE_UNKNOWN + */ + if (hw->phy.media_type != I40E_MEDIA_TYPE_BASET && + hw->phy.media_type != I40E_MEDIA_TYPE_UNKNOWN) { do { update_link_reg(hw, &link); if (link.link_status) -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-11-17 23:07:56.330719666 +0000 +++ 0019-net-i40e-fix-jumbo-frame-Rx-with-X722.patch 2022-11-17 23:07:55.524331088 +0000 @@ -1 +1 @@ -From 719469f13b11dbdc921b74258f2d10bd1c5328d4 Mon Sep 17 00:00:00 2001 +From 3508b43bcc24e7caf822bab4c3b1a9146a7175b0 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 719469f13b11dbdc921b74258f2d10bd1c5328d4 ] + @@ -16 +17,0 @@ -Cc: stable@dpdk.org @@ -25 +26 @@ -index 80fbcc847c..7726a89d99 100644 +index c2d52e4acc..c5eb7ccddc 100644 @@ -28 +29 @@ -@@ -12132,8 +12132,13 @@ i40e_set_mac_max_frame(struct rte_eth_dev *dev, uint16_t size) +@@ -13141,8 +13141,13 @@ i40e_set_mac_max_frame(struct rte_eth_dev *dev, uint16_t size)