|
| 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