import CS dpdk-24.11.2-3.el9
This commit is contained in:
parent
6c4cff2e5d
commit
8cbc61c441
@ -1,2 +1,2 @@
|
||||
7756c0e8b6751e7769ec9b9ac3585ad649219a49 SOURCES/dpdk-24.11.1.tar.xz
|
||||
fe6fdabe7e50094219e5f8ef925c0e96ead5f062 SOURCES/dpdk-24.11.2.tar.xz
|
||||
3cc45b133677fbff08e89e65a2120be52ebb27a5 SOURCES/pyelftools-0.27.tar.gz
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
SOURCES/dpdk-24.11.1.tar.xz
|
||||
SOURCES/dpdk-24.11.2.tar.xz
|
||||
SOURCES/pyelftools-0.27.tar.gz
|
||||
|
@ -0,0 +1,43 @@
|
||||
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.1
|
||||
%define rel 2
|
||||
%define ver 24.11.2
|
||||
%define rel 3
|
||||
|
||||
%define srcname dpdk%(awk -F. '{ if (NF > 2) print "-stable" }' <<<%{version})
|
||||
|
||||
@ -31,6 +31,8 @@ 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
|
||||
|
||||
#
|
||||
@ -64,7 +66,7 @@ BuildRequires: python3-pyelftools
|
||||
%endif
|
||||
BuildRequires: gcc, zlib-devel, numactl-devel, libarchive-devel
|
||||
BuildRequires: doxygen, python3-sphinx
|
||||
%ifarch x86_64
|
||||
%ifarch aarch64 x86_64
|
||||
BuildRequires: rdma-core-devel >= 44
|
||||
%endif
|
||||
|
||||
@ -147,10 +149,8 @@ ENABLED_DRIVERS=(
|
||||
%ifarch x86_64
|
||||
ENABLED_DRIVERS+=(
|
||||
baseband/acc
|
||||
bus/auxiliary
|
||||
bus/vmbus
|
||||
common/iavf
|
||||
common/mlx5
|
||||
common/nfp
|
||||
net/bnxt
|
||||
net/ena
|
||||
@ -158,7 +158,6 @@ ENABLED_DRIVERS+=(
|
||||
net/iavf
|
||||
net/ice
|
||||
net/mana
|
||||
net/mlx5
|
||||
net/netvsc
|
||||
net/nfp
|
||||
net/qede
|
||||
@ -168,8 +167,11 @@ ENABLED_DRIVERS+=(
|
||||
|
||||
%ifarch aarch64 x86_64
|
||||
ENABLED_DRIVERS+=(
|
||||
bus/auxiliary
|
||||
common/mlx5
|
||||
net/e1000
|
||||
net/ixgbe
|
||||
net/mlx5
|
||||
)
|
||||
%endif
|
||||
|
||||
@ -288,6 +290,15 @@ find %{buildroot}%{_datadir}/man/ -type f -a ! -iname "*rte_*" -exec rm {} \;
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Aug 19 2025 David Marchand <david.marchand@redhat.com> - 24.11.2-3
|
||||
- Enable net/mlx5 driver for ARM (RHEL-109612)
|
||||
|
||||
* Thu Jun 26 2025 Maxime Coquelin <maxime.coquelin@redhat.com> - 24.11.2-2
|
||||
- Avoid requiring NET_ADMIN with mlx5 (RHEL-93856)
|
||||
|
||||
* Mon Jun 23 2025 Kevin Traynor <ktraynor@redhat.com> - 24.11.2-1
|
||||
- Rebase to 24.11.2 (RHEL-96848)
|
||||
|
||||
* Mon Jan 13 2025 David Marchand <david.marchand@redhat.com> - 24.11.1-2
|
||||
- Enable net/ena and net/mana drivers (RHEL-23843)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user