Does NX Orin support AF_XDP? Does AGX Orin? Both? Neither of the two?

Is there AF_XDP support?
https://www.kernel.org/doc/html/latest/networking/af_xdp.html

Not sure about it, let me check with internal team. Thanks

However, it appears that I can build the kernel module XDP on AGX Orin with setting the argument to “m”

 cat /proc/config.gz | gunzip |grep XDP
# CONFIG_XDP_SOCKETS is not set

from first attempt after building kernel module with “m” flag it resulted in

/Linux_for_Tegra/source/public/kernel/nvidia/drivers/misc/Kconfig:116:warning: multi-line strings not supported
arch/arm64/configs/tegra_defconfig:2:warning: symbol value 'm' invalid for XDP_SOCKETS

seems sockets can not be build as a module, so the only option to pass to the next step seems to use

cat ~/out/.config | grep XDP
CONFIG_XDP_SOCKETS=y
CONFIG_XDP_SOCKETS_DIAG=m

result seems

 ls ~/out/modules/lib/modules/5.10.65/kernel/net/xdp/
xsk_diag.ko

seems only the latter of the two could be built as a module

Not all options can be built as a module, the source code might not support it. If the code is not intended to run as a module, then I’d be wary that it might not behave as expected even if the Kconfig system is fooled.