Skip to content

Commit 977a30e

Browse files
committed
Add mtu patch reversal
1 parent e890663 commit 977a30e

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ ENV DPDK_DIR=/workspace/dpdk-${DPDK_VER}
5858
COPY hack/*.patch hack/
5959

6060
RUN cd $DPDK_DIR \
61+
&& patch -p1 -R < ../hack/dpdk_25_11_mtu.patch \
6162
&& patch -p1 < ../hack/dpdk_25_11_fdb_def_rule.patch \
6263
&& patch -p1 < ../hack/dpdk_25_11_log.patch \
6364
&& patch -p1 < ../hack/dpdk_25_11_telemetry_key.patch \

hack/dpdk_25_11_mtu.patch

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
This is the original patch from upstream DPDK.
2+
Dpservice needs to revert it for MTU to stay untouched.
3+
Reason being that dpservice actually only handles custom underlay traffic,
4+
that uses MTU 1500+overhead and not the full 9100 MTU setup on a node.
5+
Using this patch forces dpservice to support MTU 9100,
6+
which increases memory footprint significantly.
7+
---
8+
9+
From 4032e7572a85005127d65ded4460ddbbfcf780f9 Mon Sep 17 00:00:00 2001
10+
From: Dariusz Sosnowski <[email protected]>
11+
Date: Mon, 8 Jul 2024 12:59:31 +0200
12+
Subject: [PATCH] net/mlx5: fix MTU configuration
13+
14+
[ upstream commit 10859ecf09c424c0f6a89379f0326a0c51f9cd2f ]
15+
16+
Apply provided MTU, derived from rte_eth_conf.rxmode.mtu,
17+
on port configuration.
18+
19+
Bugzilla ID: 1483
20+
Fixes: e60fbd5b24fc ("mlx5: add device configure/start/stop")
21+
22+
Signed-off-by: Dariusz Sosnowski <[email protected]>
23+
Acked-by: Viacheslav Ovsiienko <[email protected]>
24+
---
25+
drivers/net/mlx5/mlx5_ethdev.c | 6 ++++++
26+
1 file changed, 6 insertions(+)
27+
28+
diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c
29+
index 9c44471c42..c6ec156493 100644
30+
--- a/drivers/net/mlx5/mlx5_ethdev.c
31+
+++ b/drivers/net/mlx5/mlx5_ethdev.c
32+
@@ -136,6 +136,12 @@ mlx5_dev_configure(struct rte_eth_dev *dev)
33+
ret = mlx5_proc_priv_init(dev);
34+
if (ret)
35+
return ret;
36+
+ ret = mlx5_dev_set_mtu(dev, dev->data->mtu);
37+
+ if (ret) {
38+
+ DRV_LOG(ERR, "port %u failed to set MTU to %u", dev->data->port_id,
39+
+ dev->data->mtu);
40+
+ return ret;
41+
+ }
42+
return 0;
43+
}
44+
45+
--
46+
2.39.2

0 commit comments

Comments
 (0)