Bug #62493
openget_iface_numa_node does not work for vlan
0%
Description
This issue is similar to issue
https://tracker.ceph.com/issues/58400
however the fixed that is propose does not cover vlan case it only covers vlan + bonding
for example for the following setup with multicore numa with network card with 2 ports with bonding and vlan interfaces on it.
the get_iface_numa_node won't find the numa
ls -ltr /sys/class/net/
total 0
lrwxrwxrwx. 1 root root 0 Aug 16 13:37 ens1f0 -> ../../devices/pci0000:11/0000:11:00.0/0000:12:00.0/net/ens1f0
lrwxrwxrwx. 1 root root 0 Aug 16 13:37 ens1f1 -> ../../devices/pci0000:11/0000:11:00.0/0000:12:00.1/net/ens1f1
lrwxrwxrwx. 1 root root 0 Aug 16 14:13 infra-bond -> ../../devices/virtual/net/infra-bond
lrwxrwxrwx. 1 root root 0 Aug 16 14:13 vlan98 -> ../../devices/virtual/net/vlan98
lrwxrwxrwx. 1 root root 0 Aug 16 14:13 vlan97 -> ../../devices/virtual/net/vlan97
$ ls ltr /sys/class/net/vlan97/. 1 root root 4096 Aug 16 14:13 phys_port_id
total 0
-r--r--r-r--r--r-. 1 root root 4096 Aug 16 14:13 ifindex
lrwxrwxrwx. 1 root root 0 Aug 21 07:21 lower_infra-bond -> ../infra-bond
$ ls ltr /sys/class/net/vlan98/. 1 root root 4096 Aug 16 14:13 uevent
total 0
-rw-r--r-r--r--r-. 1 root root 4096 Aug 16 14:13 typer--r--r-. 1 root root 4096 Aug 16 14:13 phys_port_id
lrwxrwxrwx. 1 root root 0 Aug 21 07:15 lower_infra-bond -> ../infra-bond
$ls ltr /sys/class/net/infra-bond/. 1 root root 4096 Aug 16 14:13 uevent
-rw-r--r-r--r--r-. 1 root root 4096 Aug 16 14:13 phys_port_idr--r--r-. 1 root root 4096 Aug 16 14:13 ifindexr--r--r-. 1 root root 4096 Aug 16 14:13 dev_id
lrwxrwxrwx. 1 root root 0 Aug 21 07:16 upper_vlan98 -> ../vlan98
lrwxrwxrwx. 1 root root 0 Aug 21 07:16 upper_vlan97 -> ../vlan97
lrwxrwxrwx. 1 root root 0 Aug 21 07:16 lower_ens1f1 -> ../../../pci0000:11/0000:11:00.0/0000:12:00.1/net/ens1f1
lrwxrwxrwx. 1 root root 0 Aug 21 07:16 lower_ens1f0 -> ../../../pci0000:11/0000:11:00.0/0000:12:00.0/net/ens1f0