Skip to contentSkip to conversation

drivers/net: reorder Intel drivers list in meson script

PATCH Superseded Thierry Herbelot 5 participants 14 messages Jan 23 – Mar 17

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

PATCH 1/1 drivers/net: reorder Intel drivers list in meson script

After an upstream patch (see Fixes), net_ixgbe_vf is no longer declared in testpmd PMD info, when compiling under Redhat-9:

Quoted 3 lines

[user@vader dpdk]$ meson setup build && ninja -C build
[user@vader dpdk]$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe

    "name": "net_ixgbe",

Name 'net_ixgbe_vf' should also be reported.

One workaround is to move 'intel/ixgbe' as last in the list of Intel drivers. This restores net_ixgbe_vf under Redhat-9:

Quoted 3 lines

[user@vader dpdk]$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe

    "name": "net_ixgbe_vf",
    "name": "net_ixgbe",
Fixes 04f1b16c54f3 ("drivers: merge common and net idpf drivers")
---
 drivers/net/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/meson.build +1 -1
index c7dae4ad273c..8d96244cdbb0 100644
@@ -32,8 +32,8 @@ drivers = [
         'intel/ice',
         'intel/idpf',
         'intel/ipn3ke',
-        'intel/ixgbe',
         'intel/cpfl',  # depends on idpf, so must come after it
+        'intel/ixgbe',
         'ionic',
         'mana',
         'memif',
Signature · 1 line
2.39.2
#1 lore raw

PATCH v2 1/1 drivers/net: reorder Intel drivers list in meson script

After an upstream patch (see Fixes), net_ixgbe_vf is no longer declared in testpmd PMD info, when compiling under Redhat-9:

Quoted 3 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
    "name": "net_ixgbe",

Name 'net_ixgbe_vf' should also be reported.

One workaround is to move 'intel/ixgbe' as last in the list of Intel drivers. This restores net_ixgbe_vf under Redhat-9:

Quoted 4 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
    "name": "net_ixgbe_vf",
    "name": "net_ixgbe",
Fixes 04f1b16c54f3 ("drivers: merge common and net idpf drivers")

---
V2: use shorter lines in commit log.

---
 drivers/net/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/meson.build +1 -1
index c7dae4ad273c..8d96244cdbb0 100644
@@ -32,8 +32,8 @@ drivers = [
         'intel/ice',
         'intel/idpf',
         'intel/ipn3ke',
-        'intel/ixgbe',
         'intel/cpfl',  # depends on idpf, so must come after it
+        'intel/ixgbe',
         'ionic',
         'mana',
         'memif',
Signature · 1 line
2.39.2
#2 lore raw
Quoted 30 lines · Thierry Herbelot

After an upstream patch (see Fixes), net_ixgbe_vf is no longer declared in testpmd PMD info, when compiling under Redhat-9:

Quoted 3 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
    "name": "net_ixgbe",

Name 'net_ixgbe_vf' should also be reported.

One workaround is to move 'intel/ixgbe' as last in the list of Intel drivers. This restores net_ixgbe_vf under Redhat-9:

Quoted 4 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
    "name": "net_ixgbe_vf",
    "name": "net_ixgbe",
Fixes 04f1b16c54f3 ("drivers: merge common and net idpf drivers")

---
V2: use shorter lines in commit log.

---
 drivers/net/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/meson.build +0 -0
index c7dae4ad273c..8d96244cdbb0 100644

drivers/net/meson.build drivers = [ · line 39

Quoted 9 lines
drivers/net/meson.build +1 -1
@@ -32,8 +32,8 @@ drivers = [
         'intel/ice',
         'intel/idpf',
         'intel/ipn3ke',
-        'intel/ixgbe',
         'intel/cpfl',  # depends on idpf, so must come after it
+        'intel/ixgbe',
         'ionic',
         'mana',
         'memif',

This is a strange one - did you do any investgation into why or how this fixes things? You describe it as a workaround so any hints towards a proper root cause and fix are welcome :-)

#3 lore raw
Quoted 36 lines · Bruce Richardson
Quoted 35 lines · Thierry Herbelot

After an upstream patch (see Fixes), net_ixgbe_vf is no longer declared in testpmd PMD info, when compiling under Redhat-9:

Quoted 3 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
     "name": "net_ixgbe",

Name 'net_ixgbe_vf' should also be reported.

One workaround is to move 'intel/ixgbe' as last in the list of Intel drivers. This restores net_ixgbe_vf under Redhat-9:

Quoted 4 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
     "name": "net_ixgbe_vf",
     "name": "net_ixgbe",
Fixes 04f1b16c54f3 ("drivers: merge common and net idpf drivers")

---
V2: use shorter lines in commit log.

---
  drivers/net/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/meson.build +0 -1
index c7dae4ad273c..8d96244cdbb0 100644
@@ -32,8 +32,8 @@ drivers = [
          'intel/ice',
          'intel/idpf',
          'intel/ipn3ke',
-        'intel/ixgbe',
          'intel/cpfl',  # depends on idpf, so must come after it
Quoted 8 lines

drivers/net/meson.build drivers = [ · line 39

Quoted 4 lines
drivers/net/meson.build +1 -0
+        'intel/ixgbe',
          'ionic',
          'mana',
          'memif',

This is a strange one - did you do any investgation into why or how this fixes things? You describe it as a workaround so any hints towards a proper root cause and fix are welcome :-)

Hello Bruce,

This is indeed a bit puzzling: it seems that the expected ELF section is present, a 'strings' dump shows no difference between a 'full' testpmd and one missing ixgbe_vf. Still pmdinfo is missing one PMD.

The issue was not seen when using Ubuntu-24.04.

Best regards

Thierry

Signature · 7 lines
Thierry Herbelot
http://www.6wind.com/

Follow us:
https://www.linkedin.com/company/6wind/
https://twitter.com/6WINDsoftware
https://www.youtube.com/user/6windsoftware
#4 lore raw
Quoted 46 lines · Thierry Herbelot
Quoted 36 lines · Bruce Richardson
Quoted 35 lines · Thierry Herbelot

After an upstream patch (see Fixes), net_ixgbe_vf is no longer declared in testpmd PMD info, when compiling under Redhat-9:

Quoted 3 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
     "name": "net_ixgbe",

Name 'net_ixgbe_vf' should also be reported.

One workaround is to move 'intel/ixgbe' as last in the list of Intel drivers. This restores net_ixgbe_vf under Redhat-9:

Quoted 4 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
     "name": "net_ixgbe_vf",
     "name": "net_ixgbe",
Fixes 04f1b16c54f3 ("drivers: merge common and net idpf drivers")

---
V2: use shorter lines in commit log.

---
  drivers/net/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/meson.build +0 -1
index c7dae4ad273c..8d96244cdbb0 100644
@@ -32,8 +32,8 @@ drivers = [
          'intel/ice',
          'intel/idpf',
          'intel/ipn3ke',
-        'intel/ixgbe',
          'intel/cpfl',  # depends on idpf, so must come after it
Quoted 8 lines

drivers/net/meson.build drivers = [ · line 39

Quoted 4 lines
drivers/net/meson.build +1 -0
+        'intel/ixgbe',
          'ionic',
          'mana',
          'memif',

This is a strange one - did you do any investgation into why or how this fixes things? You describe it as a workaround so any hints towards a proper root cause and fix are welcome :-)

Quoted 8 lines

Hello Bruce,

This is indeed a bit puzzling: it seems that the expected ELF section is present, a 'strings' dump shows no difference between a 'full' testpmd and one missing ixgbe_vf. Still pmdinfo is missing one PMD.

The issue was not seen when using Ubuntu-24.04.

[Not unexpectedly,] it appears that there is more to it than just missing this driver. Installing a centos 9 VM and doing a clang build and comparing the pmdinfo output to the GCC build output, I find there are in fact 3 missing drivers in the output: net_dpaa2, net_ixgbe_vf, and net_sfc_efx.

Changing the order of things to move down ixgbe makes ixgbe_vf and sfc_efx reappear, but sadly net_vcpf now disappears. :-(
Therefore, more investigation and root causing is needed to find a proper fix.

/Bruce

#5 lore raw
Quoted 60 lines · Bruce Richardson
Quoted 46 lines · Thierry Herbelot
Quoted 36 lines · Bruce Richardson
Quoted 35 lines · Thierry Herbelot

After an upstream patch (see Fixes), net_ixgbe_vf is no longer declared in testpmd PMD info, when compiling under Redhat-9:

Quoted 3 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
     "name": "net_ixgbe",

Name 'net_ixgbe_vf' should also be reported.

One workaround is to move 'intel/ixgbe' as last in the list of Intel drivers. This restores net_ixgbe_vf under Redhat-9:

Quoted 4 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
     "name": "net_ixgbe_vf",
     "name": "net_ixgbe",
Fixes 04f1b16c54f3 ("drivers: merge common and net idpf drivers")

---
V2: use shorter lines in commit log.

---
  drivers/net/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/meson.build +0 -1
index c7dae4ad273c..8d96244cdbb0 100644
@@ -32,8 +32,8 @@ drivers = [
          'intel/ice',
          'intel/idpf',
          'intel/ipn3ke',
-        'intel/ixgbe',
          'intel/cpfl',  # depends on idpf, so must come after it
Quoted 8 lines

drivers/net/meson.build drivers = [ · line 39

Quoted 4 lines
drivers/net/meson.build +1 -0
+        'intel/ixgbe',
          'ionic',
          'mana',
          'memif',

This is a strange one - did you do any investgation into why or how this fixes things? You describe it as a workaround so any hints towards a proper root cause and fix are welcome :-)

Quoted 8 lines

Hello Bruce,

This is indeed a bit puzzling: it seems that the expected ELF section is present, a 'strings' dump shows no difference between a 'full' testpmd and one missing ixgbe_vf. Still pmdinfo is missing one PMD.

The issue was not seen when using Ubuntu-24.04.

[Not unexpectedly,] it appears that there is more to it than just missing this driver. Installing a centos 9 VM and doing a clang build and comparing the pmdinfo output to the GCC build output, I find there are in fact 3 missing drivers in the output: net_dpaa2, net_ixgbe_vf, and net_sfc_efx.

Quoted 5 lines

Changing the order of things to move down ixgbe makes ixgbe_vf and sfc_efx reappear, but sadly net_vcpf now disappears. :-(
Therefore, more investigation and root causing is needed to find a proper fix.

Doing a bit of poking with strings on the various binaries has shown why some of these strings are not showing up despite being present in the binary. In some cases, the bytes leading up to "PMD_INFO_STRING=" are printable characters, in which case the PMD gets omitted from the output as the ascii string found does not _start_ with PMD_INFO_STRING.

Given this info, I'm not sure whether this should be fixed in the code, is a compiler issue, or whether we should just modify our script to find PMD_INFO_STRING anywhere in output strings not just at the start.

Suggestions?

/Bruce

#6 lore raw

16/02/2026 12:32, Bruce Richardson:

Quoted 72 lines · Bruce Richardson
Quoted 60 lines · Thierry Herbelot
Quoted 46 lines · Bruce Richardson
Quoted 36 lines · Thierry Herbelot
Quoted 35 lines

After an upstream patch (see Fixes), net_ixgbe_vf is no longer declared in testpmd PMD info, when compiling under Redhat-9:

Quoted 3 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
     "name": "net_ixgbe",

Name 'net_ixgbe_vf' should also be reported.

One workaround is to move 'intel/ixgbe' as last in the list of Intel drivers. This restores net_ixgbe_vf under Redhat-9:

Quoted 4 lines
$ meson setup build && ninja -C build
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
     "name": "net_ixgbe_vf",
     "name": "net_ixgbe",
Fixes 04f1b16c54f3 ("drivers: merge common and net idpf drivers")

---
V2: use shorter lines in commit log.

---
  drivers/net/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/meson.build +0 -1
index c7dae4ad273c..8d96244cdbb0 100644
@@ -32,8 +32,8 @@ drivers = [
          'intel/ice',
          'intel/idpf',
          'intel/ipn3ke',
-        'intel/ixgbe',
          'intel/cpfl',  # depends on idpf, so must come after it
Quoted 8 lines

drivers/net/meson.build drivers = [ · line 39

Quoted 4 lines
drivers/net/meson.build +1 -0
+        'intel/ixgbe',
          'ionic',
          'mana',
          'memif',

This is a strange one - did you do any investgation into why or how this fixes things? You describe it as a workaround so any hints towards a proper root cause and fix are welcome :-)

Quoted 8 lines

Hello Bruce,

This is indeed a bit puzzling: it seems that the expected ELF section is present, a 'strings' dump shows no difference between a 'full' testpmd and one missing ixgbe_vf. Still pmdinfo is missing one PMD.

The issue was not seen when using Ubuntu-24.04.

[Not unexpectedly,] it appears that there is more to it than just missing this driver. Installing a centos 9 VM and doing a clang build and comparing the pmdinfo output to the GCC build output, I find there are in fact 3 missing drivers in the output: net_dpaa2, net_ixgbe_vf, and net_sfc_efx.

Quoted 5 lines

Changing the order of things to move down ixgbe makes ixgbe_vf and sfc_efx reappear, but sadly net_vcpf now disappears. :-(
Therefore, more investigation and root causing is needed to find a proper fix.

Doing a bit of poking with strings on the various binaries has shown why some of these strings are not showing up despite being present in the binary. In some cases, the bytes leading up to "PMD_INFO_STRING=" are printable characters, in which case the PMD gets omitted from the output as the ascii string found does not _start_ with PMD_INFO_STRING.

Quoted 5 lines

Given this info, I'm not sure whether this should be fixed in the code, is a compiler issue, or whether we should just modify our script to find PMD_INFO_STRING anywhere in output strings not just at the start.

Suggestions?

I feel it would be more reliable to find the string anywhere.

#7 lore raw

PATCH 1/1 usertools/pmdinfo: fix search for PMD info string

In reply to Thierry Herbelot

The PMD_INFO_STRING constant string is not guaranteed to appear in the output binary immediately after an unprintable character. Because of this, in some cases the information for a driver could be missed by the PMD info script as it only checks for the prefix at the start of strings that it finds. Change the script to use "s.find()" rather than "s.startswith()" to fix this issue.

Fixes 0ce3cf4afd04 ("usertools/pmdinfo: rewrite simpler script")
---
 usertools/dpdk-pmdinfo.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
usertools/dpdk-pmdinfo.py +3 -2
index 9251c69db9..a4913f2209 100755
@@ -221,8 +221,9 @@ def find_strings(buf: bytes, prefix: str) -> Iterator[str]:
             if b == 0:
                 # end of string
                 s = view[start:i].tobytes().decode("ascii")
-                if s.startswith(prefix):
-                    yield s[len(prefix) :]
+                idx = s.find(prefix)
+                if idx >= 0:
+                    yield s[idx + len(prefix) :]
             # There can be byte sequences where a non-printable byte
             # follows a printable one. Ignore that.
             start = None
Signature · 1 line
2.51.0
Acked-by on v1 1/1
#8 lore raw

Re: [PATCH] usertools/pmdinfo: fix search for PMD info string

Quoted 8 lines · Bruce Richardson

The PMD_INFO_STRING constant string is not guaranteed to appear in the output binary immediately after an unprintable character. Because of this, in some cases the information for a driver could be missed by the PMD info script as it only checks for the prefix at the start of strings that it finds. Change the script to use "s.find()" rather than "s.startswith()" to fix this issue.

Quoted 4 lines
Fixes 0ce3cf4afd04 ("usertools/pmdinfo: rewrite simpler script")

Surprising we hit this issue only now.

It would be good to hear back from the initial reporter.

Signature · 1 line
David Marchand
#9 lore raw

Re: [PATCH] usertools/pmdinfo: fix search for PMD info string

Quoted 10 lines · David Marchand
Quoted 8 lines · Bruce Richardson

The PMD_INFO_STRING constant string is not guaranteed to appear in the output binary immediately after an unprintable character. Because of this, in some cases the information for a driver could be missed by the PMD info script as it only checks for the prefix at the start of strings that it finds. Change the script to use "s.find()" rather than "s.startswith()" to fix this issue.

Quoted 6 lines
Quoted 4 lines
Fixes 0ce3cf4afd04 ("usertools/pmdinfo: rewrite simpler script")

Surprising we hit this issue only now.

Agreed. Two thoughts here:
1. are the compilers normally arranging the data in ways that nearly guarantee that the strings are not prefixed by other printable data?
2. if we were missing a couple of drivers from dpdk-pmdinfo, would it really be noticed? Even in the reported case, there were actually 3 missing driver listings, but only one was actually noticed.

I'd suspect #2 myself. :-)

Quoted 4 lines

It would be good to hear back from the initial reporter.

Agreed. I'd like independent confirmation that this fixes the issue on RHEL 9 as reported.

/Bruce

#10 lore raw

Re: [PATCH] usertools/pmdinfo: fix search for PMD info string

Quoted 25 lines · Bruce Richardson
Quoted 10 lines · David Marchand
Quoted 8 lines · Bruce Richardson

The PMD_INFO_STRING constant string is not guaranteed to appear in the output binary immediately after an unprintable character. Because of this, in some cases the information for a driver could be missed by the PMD info script as it only checks for the prefix at the start of strings that it finds. Change the script to use "s.find()" rather than "s.startswith()" to fix this issue.

Quoted 6 lines
Quoted 4 lines
Fixes 0ce3cf4afd04 ("usertools/pmdinfo: rewrite simpler script")

Surprising we hit this issue only now.

Agreed. Two thoughts here:
1. are the compilers normally arranging the data in ways that nearly guarantee that the strings are not prefixed by other printable data?
2. if we were missing a couple of drivers from dpdk-pmdinfo, would it really be noticed? Even in the reported case, there were actually 3 missing driver listings, but only one was actually noticed.

Quoted 8 lines

I'd suspect #2 myself. :-)

Quoted 4 lines

It would be good to hear back from the initial reporter.

Agreed. I'd like independent confirmation that this fixes the issue on RHEL 9 as reported.

Hello Bruce,

Sorry for the late response.
I confirm your patch does fix the original issue:

$ head -2 /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="9.7 (Plow)"
$ meson setup build
$ ninja -C build
...
$ ./usertools/dpdk-pmdinfo.py build/app/dpdk-testpmd|grep ixgbe
    "name": "net_ixgbe_vf",
    "name": "net_ixgbe",

Thanks !

Best regards

Thierry

Quoted 2 lines

/Bruce

Signature · 1 line
Thierry Herbelot
#11 lore raw

Re: [PATCH] usertools/pmdinfo: fix search for PMD info string

In reply to Bruce Richardson
Quoted 10 lines · Bruce Richardson
Quoted 1 line

Surprising we hit this issue only now.

Agreed. Two thoughts here:
1. are the compilers normally arranging the data in ways that nearly guarantee that the strings are not prefixed by other printable data?
2. if we were missing a couple of drivers from dpdk-pmdinfo, would it really be noticed? Even in the reported case, there were actually 3 missing driver listings, but only one was actually noticed.

I'd suspect #2 myself. :-)

Yeah, the latter is likely.
Thanks Bruce.

Signature · 1 line
David Marchand
Acked-by on v1 1/1
#12 lore raw

Re: [PATCH] usertools/pmdinfo: fix search for PMD info string

In reply to Bruce Richardson

Bruce Richardson, Feb 17, 2026 at 13:48:

Quoted 11 lines

The PMD_INFO_STRING constant string is not guaranteed to appear in the output binary immediately after an unprintable character. Because of this, in some cases the information for a driver could be missed by the PMD info script as it only checks for the prefix at the start of strings that it finds. Change the script to use "s.find()" rather than "s.startswith()" to fix this issue.

Fixes 0ce3cf4afd04 ("usertools/pmdinfo: rewrite simpler script")

Nice find. Thanks Bruce.

#13 lore raw

Re: [PATCH] usertools/pmdinfo: fix search for PMD info string

18/02/2026 10:41, Robin Jarry:

Quoted 8 lines

Bruce Richardson, Feb 17, 2026 at 13:48:

Quoted 7 lines

The PMD_INFO_STRING constant string is not guaranteed to appear in the output binary immediately after an unprintable character. Because of this, in some cases the information for a driver could be missed by the PMD info script as it only checks for the prefix at the start of strings that it finds. Change the script to use "s.find()" rather than "s.startswith()" to fix this issue.

Quoted 8 lines
Quoted 4 lines
Fixes 0ce3cf4afd04 ("usertools/pmdinfo: rewrite simpler script")

Nice find. Thanks Bruce.

Applied, thanks.