Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test of using Onload to accelerate the vmxnet3 virtual network adapter in a VMware virtual machine... #257

Open
density1970 opened this issue Jan 14, 2025 · 1 comment

Comments

@density1970
Copy link

Has there been any testing of using Onload to accelerate the vmxnet3 virtual network adapter in a VMware virtual machine (Ubuntu 22.04.1) environment? Based on testing, vmxnet3 does not natively support AF_XDP, and ntuple-filters are defaulted to "off" and are fixed, meaning they cannot be modified by the virtual machine itself. The compilation and usage process is as follows:

onload_build & onload_install: Use the --no-sfc parameter.

onload_tool reload: Use the --onload-only parameter.

make -C ./src/tools/bpf_link_helper/

echo $(realpath ./src/tools/bpf_link_helper/bpf-link-helper) | sudo tee /sys/module/sfc_resource/parameters/bpf_link_helper

echo ens160 > /sys/module/sfc_resource/afxdp/register

After starting my socket application, there is no data traffic between the remote server and the application.

@density1970
Copy link
Author

dmesg:

[ 40.779524] NET: Registered PF_VSOCK protocol family
[ 49.007597] vmxnet3 0000:03:00.0 ens160: intr type 3, mode 0, 5 vectors allocated
[ 49.011275] vmxnet3 0000:03:00.0 ens160: NIC Link is Up 10000 Mbps
[ 68.018740] loop6: detected capacity change from 0 to 8
[ 356.906454] [sfc efrm] nondl_register_store: cannot detect number of channels for device ens160 assuming 1
[ 356.906478] [sfc efrm] efrm_nondl_register_device: register ens160
[ 356.907225] [sfc efrm] ens160 type=4:X0 ifindex=2
[ 356.908426] [sfc efhw] xdp_set_link: ens160 does not support native XDP, using generic mode
[ 356.908433] [sfc efhw] xdp_set_link: spawning /opt/onload/src/tools/bpf_link_helper/bpf-link-helper ens160 xdpsock
[ 356.913813] [sfc efhw] af_xdp_rss_get_support: ens160 does not support get_rxfh_key_size operation
[ 356.913839] [sfc efrm] ?: ERROR: hardware init failed rc=-95
[ 356.915241] [sfc efrm] ens160 index=0 ifindex=2
[ 356.915548] [onload] oo_nic_add: ifindex=2 oo_index=0
[ 356.931679] Found bpf program "xdpsock" fd=0 id=21 ifindex=0
Linking to ens160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant