Closed shirshen12 closed 3 years ago
Hello,
Thanks for the detailed report.
Worth noting we have not experience on running Onload + AF_XDP with Mellanox NICs and Azure.
This is what I can devise:
[ 950.500799] [sfc efrm] ?: ERROR: hardware init failed rc=-95
Registration of the NIC apparently failed with EOPNOTSUPP (-95), that explains the problem seeing when starting the app.
The above dmesg message is preceded by this message from the driver:
[ 950.500796] hv_netvsc 000d3a7d-9c68-000d-3a7d-9c68000d3a7d eth0: XDP: not support LRO
My attempt to decode this message gives this:
| The network driver probably supports XDP, however, not when LRO is enabled |
Can LRO setting on the device be tweaked? It might be tricky in hyper-vised environment if this is per-port setting.
Let me know whether this helps,
Regards, Maciej
Hello @maciejj-xilinx ,
I disabled the LRO option on the Mellanox NiC and was able to successfully able to get Onload working.
To disable LRO on Mellanox NiCs in SR-IOV mode in Azure:
root@sriov-onload1 ~]# ethtool -k enP28349s1 | grep large-receive-offload
large-receive-offload: off [requested on]
root@sriov-onload1 ~]# ethtool -K enP28349s1 lro off
[root@sriov-onload1 ~]# ethtool -k enP28349s1 | grep large-receive-offload
large-receive-offload: off
Now, I am able to offload the application on Onload:
[root@sriov-onload1 ~]# onload -p latency memcached -m 24576 -c 1024 -t 4 -u root -l 10.113.65.35:11211
oo:memcached[613707]: Using Onload <dev-snapshot> [6]
oo:memcached[613707]: Copyright 2019-present Xilinx, 2006-2019 Solarflare Communications, 2002-2005 Level 5 Networks
Verified if onload_stackdump can see the stack created:
[root@sriov-onload1 ~]# onload_stackdump
#stack-id stack-name pids
6 - -
Hence closing the issue and thanks for the support.
Hello,
I am trying to get the Onload to offload memcached on an Azure VM, but it does not work.
Below is the error message:
Environment details of Azure: VM Type: D8ds_v4 OS: Red Hat Enterprise Linux release 8.4 (Ootpa) Kernel version: 4.18.0-305.7.1.el8_4.x86_64 CPU Make: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz vCPUs: 8
VM has access to underlying NiC via SR-IOV, with mirror pass-through mode.
NiC Model: Mellanox Technologies MT27710 Family [ConnectX-4 Lx Virtual Function] (rev 80) Kernel Driver : mlx5_core, version: 5.4-1.0.3 Kernel Driver Loaded ? YES SFC driver and Onload compiled and loaded: YES
SR-IOV interface registered : YES, the below message comes only when we try to re-register the NiC interface.
dmesg o/p:
Request your attention.