[PATCH] net/af_xdp: avoid error log for virtual interfaces
Ferruh Yigit
ferruh.yigit at amd.com
Fri Oct 27 22:37:02 CEST 2023
On 10/27/2023 3:32 PM, David Marchand wrote:
> For virtual interfaces, like a veth or a tap used in OVS unit tests,
> plugging a af_xdp port on them results in an error level message:
>
> dpdk|ERR|EAL: eal_parse_sysfs_value(): cannot open sysfs value
> /sys/class/net/ovs-tap1/device/numa_node
> netdev_dpdk|INFO|Device 'net_af_xdptap1,iface=ovs-tap1' attached to DPDK
>
> Avoid this error by checking if the sysfs file exists, like what is done
> in DPDK bus drivers using eal_parse_sysfs_value().
>
> Fixes: 3d28387cbc48 ("net/af_xdp: parse NUMA node ID from sysfs")
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
>
Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list