Skip to contentSkip to conversation

net/qede: workaround for operation in Ubuntu-24.04

PATCH RESEND In review Thierry Herbelot 2 participants 3 messages Aug 28, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 net/qede: workaround for operation in Ubuntu-24.04

Hello,

[resend because the original diff was for the 24.11 branch]

qede stopped working with recent distributions, as explained in this bug report:
https://bugs.dpdk.org/show_bug.cgi?id=1379

For reference, one workaround is to disable all optimizations when compiling the qede PMD with gcc-13, as seen in main branch:

drivers/net/qede/base/meson.build +1 -0
index a6dad3ec7bcc..c0d8b8ea979f 100644
@@ -55,3 +55,4 @@ foreach flag: error_cflags
         base_cflags += flag
     endif
 endforeach
+base_cflags += '-O0'
drivers/net/qede/meson.build +1 -0
index e1b21d6ff5cd..2a06419effff 100644
@@ -22,3 +22,4 @@ sources = files(
 if cc.has_argument('-Wno-format-nonliteral')
     cflags += '-Wno-format-nonliteral'
 endif
+cflags += '-O0'

This enables operation with QL41xxx and QL45xxx NICs.

Best regards

Thierry

Signature · 1 line
Thierry Herbelot
#1 lore raw
Quoted 10 lines · On Thu, 28 Aug 2025 10:09:35 +0200 Thierry Herbelot…

Hello,

[resend because the original diff was for the 24.11 branch]

qede stopped working with recent distributions, as explained in this bug report:
https://bugs.dpdk.org/show_bug.cgi?id=1379

For reference, one workaround is to disable all optimizations when compiling the qede PMD with gcc-13, as seen in main branch:

Using O0 is pretty drastic and can have bad performance and doing it for every distro will cause performance drop.

All patches must have Signed-off-by, so this patch will be dropped.

#2 lore raw
Quoted 11 lines · Stephen Hemminger
Quoted 8 lines · On Thu, 28 Aug 2025 10:09:35 +0200 Thierry Herbelot…

Hello,

[resend because the original diff was for the 24.11 branch]

qede stopped working with recent distributions, as explained in this bug report:
https://bugs.dpdk.org/show_bug.cgi?id=1379

Quoted 6 lines
Quoted 2 lines

For reference, one workaround is to disable all optimizations when compiling the qede PMD with gcc-13, as seen in main branch:

Using O0 is pretty drastic and can have bad performance and doing it for every distro will cause performance drop.

Hello Stephen

I absolutely agree: -O0 brings a big performance drop.
I am investigating if the qede PMD compiled with -O1 or -O2 optimization levels and gcc-13 is still working.

Regards

Thierry

Quoted 2 lines

All patches must have Signed-off-by, so this patch will be dropped.

Signature · 1 line
Thierry Herbelot