Rebase to 24.11.3
Resolves: RHEL-121229 Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
This commit is contained in:
parent
8cd0ecfb6f
commit
f18cbf3996
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@
|
||||
/dpdk-23.11.tar.xz
|
||||
/dpdk-24.11.1.tar.xz
|
||||
/dpdk-24.11.2.tar.xz
|
||||
/dpdk-24.11.3.tar.xz
|
||||
|
||||
@ -1,43 +0,0 @@
|
||||
From f1f9113a08b202d302ba9448d351c04da48ff46d Mon Sep 17 00:00:00 2001
|
||||
From: Maxime Coquelin <maxime.coquelin@redhat.com>
|
||||
Date: Wed, 28 May 2025 11:36:44 +0200
|
||||
Subject: [PATCH] net/mlx5: avoid setting kernel MTU if not needed
|
||||
|
||||
This patch checks whether the Kernel MTU has the same value
|
||||
as the requested one at port configuration time, and skip
|
||||
setting it if it is the same.
|
||||
|
||||
Doing this, we can avoid the application to require
|
||||
NET_ADMIN capability, as in v23.11.
|
||||
|
||||
Fixes: 10859ecf09c4 ("net/mlx5: fix MTU configuration")
|
||||
Cc: stable@dpdk.org
|
||||
|
||||
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
|
||||
Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
|
||||
---
|
||||
drivers/net/mlx5/mlx5_ethdev.c | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
|
||||
index a50320075c..b7df39ace9 100644
|
||||
--- a/drivers/net/mlx5/mlx5_ethdev.c
|
||||
+++ b/drivers/net/mlx5/mlx5_ethdev.c
|
||||
@@ -678,6 +678,14 @@ mlx5_dev_set_mtu(struct rte_eth_dev *dev, uint16_t mtu)
|
||||
ret = mlx5_get_mtu(dev, &kern_mtu);
|
||||
if (ret)
|
||||
return ret;
|
||||
+
|
||||
+ if (kern_mtu == mtu) {
|
||||
+ priv->mtu = mtu;
|
||||
+ DRV_LOG(DEBUG, "port %u adapter MTU was already set to %u",
|
||||
+ dev->data->port_id, mtu);
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
/* Set kernel interface MTU first. */
|
||||
ret = mlx5_set_mtu(dev, mtu);
|
||||
if (ret)
|
||||
--
|
||||
2.49.0
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
#% define date 20191128
|
||||
#% define shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
||||
|
||||
%define ver 24.11.2
|
||||
%define rel 3
|
||||
%define ver 24.11.3
|
||||
%define rel 1
|
||||
|
||||
%define srcname dpdk%(awk -F. '{ if (NF > 2) print "-stable" }' <<<%{version})
|
||||
|
||||
@ -31,8 +31,6 @@ Source: https://fast.dpdk.org/rel/dpdk-%{ver}.tar.xz
|
||||
# Only needed for creating snapshot tarballs, not used in build itself
|
||||
Source100: dpdk-snapshot.sh
|
||||
|
||||
Patch1: 0001-net-mlx5-avoid-setting-kernel-MTU-if-not-needed.patch
|
||||
|
||||
Summary: Set of libraries and drivers for fast packet processing
|
||||
|
||||
#
|
||||
@ -290,6 +288,9 @@ find %{buildroot}%{_datadir}/man/ -type f -a ! -iname "*rte_*" -exec rm {} \;
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Oct 14 2025 Kevin Traynor <ktraynor@redhat.com> - 24.11.3-1
|
||||
- Rebase to 24.11.3 (RHEL-121229)
|
||||
|
||||
* Tue Aug 19 2025 David Marchand <david.marchand@redhat.com> - 24.11.2-3
|
||||
- Enable net/mlx5 driver for ARM (RHEL-109612)
|
||||
|
||||
|
||||
2
sources
2
sources
@ -1,2 +1,2 @@
|
||||
SHA512 (dpdk-24.11.2.tar.xz) = 4a7a47b095ed6b9433ad900fff613690ba4d4c7d109045ef01dac612f971b038226b43d3665cf08306c41cf96f3de1be1862365c3f66f3b4f749807666284d78
|
||||
SHA512 (dpdk-24.11.3.tar.xz) = 7ba91f27a6725b461a6ee5bdd68b55182b18341cec098e7a2f7fb74208172fa485cac5b106581650dd34efb104ae17627dbcae1fa3a1e854ba508103fc54a5c0
|
||||
SHA512 (pyelftools-0.27.tar.gz) = bb0a00e5500016e3d4f64be0a728e190f84b11a805f78d668b5a74716a30400e6794946f198ef4a3f3b8f64a63deb1b5a96180b09e56b7357b988b28e25fad0a
|
||||
|
||||
Loading…
Reference in New Issue
Block a user