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 EC8474569C for ; Wed, 24 Jul 2024 13:34:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E786A4332E; Wed, 24 Jul 2024 13:34:00 +0200 (CEST) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mails.dpdk.org (Postfix) with ESMTP id AFA0F42D28 for ; Wed, 24 Jul 2024 13:33:59 +0200 (CEST) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4266f3e0df8so48366475e9.2 for ; Wed, 24 Jul 2024 04:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721820839; x=1722425639; 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=I5evuxG8aF0e6C1rVT8sEobp9AohEIaGBym07u6aarQ=; b=WS7+oYaYZb9h8CX6kKlp2KGKxW/4+qs5cbsQ8HMC0irTmq/t6zGWHgS0U/T86ScLpX lr06Y3SIN/NNLSBaxjvrwoOCXWMdVSZPXVTqrlwxQRC3iRUZaFRFmPoIbc+9WNWLOmEt /5NA1GwqQzCcRVcT3F8B9LcbBf3Yj2uY+lRd+sqLvD8w474NKmbdJcmhBaM+oo9bEIqY A5qoE9303k85Oj3eDDsgOWeIGXn7fBEwD4QCEtVFQ6r5ehfrYI3rFlNW3aEM3R+f/jJz Svr/kYU2fJtFvwrI+H5lQoe6q0Ta4GYLcm+p1CF959T7rlJAnyOTFxQFGOC+jMxDp22S S4Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721820839; x=1722425639; 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=I5evuxG8aF0e6C1rVT8sEobp9AohEIaGBym07u6aarQ=; b=mU17vjDJvXiDz0hNsIAsgLzBtAb1luvq9f2UkbPB0jxZkl83vOqMUCrJo1nQnYX5dz 6BLVP+6nfvWjsseJMVBJ0cz/RV3kcEijv8Q6tAf6/o8O8+ljKWIfH6LfitSXwZwMwmMr WbEfz64jDos5ov4zNsRDyoULnNmSb1/WJ/oWwSi6nxtKyXfM/6CrJ6CtJ/+hW4lP007V Y67Fk9pChh2laDDkXBbfoNOVCNMxmyAm36JNtKCHE6sHVk2d4idwyos0L46ZEFWkXIdr kdYOfUx9O6e326VuC3PhJ6cJSkmOmo9S77vkEAakOu86ASXmAMTTwYH2Rd89TWCJ18p/ +L7g== X-Forwarded-Encrypted: i=1; AJvYcCX8O9xOJH8yhWVRhcksGSig+mNqtzCeobcL+QIQ6gjNKbhVW0QPiqFrbcuEqi+DDy8j7E4/FQM1jWzqfDi76JY= X-Gm-Message-State: AOJu0YyOBi3KePmTTMSVRBDw/cyATMOGRMUElEw68wYTKN5yIEpuDiiy RT8GUwFUmxwkz2Rnp5ckSCsBDLdVDvbDZX/IyYGlnjK3RxmyHRblxHVaoXzs X-Google-Smtp-Source: AGHT+IGHA7cP+2ewJGbbD+Y36ejXH7Qay4YItaoKZrjx5HLvFNnWp5sWxoZpj/qgvx+vw7HAfmtc5Q== X-Received: by 2002:a05:600c:3c8c:b0:426:8ee5:5d24 with SMTP id 5b1f17b1804b1-427f956114bmr13982765e9.20.1721820839248; Wed, 24 Jul 2024 04:33:59 -0700 (PDT) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427f935cdefsm26285415e9.9.2024.07.24.04.33.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jul 2024 04:33:58 -0700 (PDT) From: luca.boccassi@gmail.com To: Dariusz Sosnowski Cc: Viacheslav Ovsiienko , dpdk stable Subject: patch 'net/mlx5: fix MTU configuration' has been queued to stable release 22.11.6 Date: Wed, 24 Jul 2024 12:32:50 +0100 Message-Id: <20240724113318.616754-12-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240724113318.616754-1-luca.boccassi@gmail.com> References: <20240715152704.2229503-86-luca.boccassi@gmail.com> <20240724113318.616754-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 22.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/26/24. 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/57ebce02cd957765c514593516ac3201225f1ed2 Thanks. Luca Boccassi --- >From 57ebce02cd957765c514593516ac3201225f1ed2 Mon Sep 17 00:00:00 2001 From: Dariusz Sosnowski Date: Mon, 8 Jul 2024 12:59:31 +0200 Subject: [PATCH] net/mlx5: fix MTU configuration [ upstream commit 10859ecf09c424c0f6a89379f0326a0c51f9cd2f ] Apply provided MTU, derived from rte_eth_conf.rxmode.mtu, on port configuration. Bugzilla ID: 1483 Fixes: e60fbd5b24fc ("mlx5: add device configure/start/stop") Signed-off-by: Dariusz Sosnowski Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_ethdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c index 4a85415ff3..df7cd241a2 100644 --- a/drivers/net/mlx5/mlx5_ethdev.c +++ b/drivers/net/mlx5/mlx5_ethdev.c @@ -146,6 +146,12 @@ mlx5_dev_configure(struct rte_eth_dev *dev) ret = mlx5_proc_priv_init(dev); if (ret) return ret; + ret = mlx5_dev_set_mtu(dev, dev->data->mtu); + if (ret) { + DRV_LOG(ERR, "port %u failed to set MTU to %u", dev->data->port_id, + dev->data->mtu); + return ret; + } return 0; } -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-07-24 12:29:21.731099588 +0100 +++ 0012-net-mlx5-fix-MTU-configuration.patch 2024-07-24 12:29:20.711024924 +0100 @@ -1 +1 @@ -From 10859ecf09c424c0f6a89379f0326a0c51f9cd2f Mon Sep 17 00:00:00 2001 +From 57ebce02cd957765c514593516ac3201225f1ed2 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 10859ecf09c424c0f6a89379f0326a0c51f9cd2f ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index 1b721cda5e..6a678d6dcc 100644 +index 4a85415ff3..df7cd241a2 100644 @@ -23 +24 @@ -@@ -154,6 +154,12 @@ mlx5_dev_configure(struct rte_eth_dev *dev) +@@ -146,6 +146,12 @@ mlx5_dev_configure(struct rte_eth_dev *dev)