<div dir="ltr">azureuser@dpdk0:~$ ethtool -i enP47056s2<br>driver: mlx5_core<br>version: 5.15.0-1053-azure<br>firmware-version: 16.30.1284 (MSF0000000012)<br>expansion-rom-version:<br>bus-info: b7d0:00:02.0<br><br>I also installed rdma-core/libibverbs1 (dpdk was compiled with  ibverbs_link=shared)<br><br>azureuser@dpdk0:~$ apt-cache policy rdma-core<br>rdma-core:<br>  Installed: 28.0-1ubuntu1<br>azureuser@dpdk0:~$ apt-cache policy libibverbs1<br>libibverbs1:<br>  Installed: 28.0-1ubuntu1<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 23, 2024 at 6:32 PM Stephen Hemminger <<a href="mailto:stephen@networkplumber.org">stephen@networkplumber.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 23 Jan 2024 14:34:12 +0200<br>
Oleksandr Nahnybida <<a href="mailto:oleksandrn@interfacemasters.com" target="_blank">oleksandrn@interfacemasters.com</a>> wrote:<br>
<br>
> Hello,<br>
> <br>
> I am trying to set up dpdk with netvsc as master pmd on Azure following<br>
> <a href="https://learn.microsoft.com/en-us/azure/virtual-network/setup-dpdk?tabs=ubuntu" rel="noreferrer" target="_blank">https://learn.microsoft.com/en-us/azure/virtual-network/setup-dpdk?tabs=ubuntu</a><br>
> and<br>
> <a href="https://doc.dpdk.org/guides-22.11/nics/netvsc.html" rel="noreferrer" target="_blank">https://doc.dpdk.org/guides-22.11/nics/netvsc.html</a><br>
> <br>
> but I have the following error messages<br>
> <br>
> EAL: VFIO support initialized<br>
> EAL: Probe PCI driver: mlx5_pci (15b3:1018) device: 8565:00:02.0 (socket 0)<br>
> mlx5_net: DV flow is not supported.<br>
> mlx5_common: Failed to allocate DevX UAR (BF/NC)<br>
> mlx5_common: Failed to allocate UAR.<br>
> mlx5_net: Failed to prepare Tx DevX UAR.<br>
> mlx5_net: probe of PCI device 8565:00:02.0 aborted after encountering an<br>
> error: Operation not permitted<br>
> mlx5_common: Failed to load driver mlx5_eth<br>
> EAL: Requested device 8565:00:02.0 cannot be used<br>
> EAL: Probe PCI driver: mlx5_pci (15b3:1018) device: d377:00:02.0 (socket 0)<br>
> mlx5_net: DV flow is not supported.<br>
> mlx5_common: Failed to allocate DevX UAR (BF/NC)<br>
> mlx5_common: Failed to allocate UAR.<br>
> mlx5_net: Failed to prepare Tx DevX UAR.<br>
> mlx5_net: probe of PCI device d377:00:02.0 aborted after encountering an<br>
> error: Operation not permitted<br>
> mlx5_common: Failed to load driver mlx5_eth<br>
> EAL: Requested device d377:00:02.0 cannot be used<br>
> EAL: Probe PCI driver: mlx5_pci (15b3:1018) device: f97e:00:02.0 (socket 0)<br>
> mlx5_net: DV flow is not supported.<br>
> mlx5_common: Failed to allocate DevX UAR (BF/NC)<br>
> mlx5_common: Failed to allocate UAR.<br>
> mlx5_net: Failed to prepare Tx DevX UAR.<br>
> mlx5_net: probe of PCI device f97e:00:02.0 aborted after encountering an<br>
> error: Operation not permitted<br>
> mlx5_common: Failed to load driver mlx5_eth<br>
> EAL: Requested device f97e:00:02.0 cannot be used<br>
> EAL: Bus (pci) probe failed.<br>
> hn_vf_attach(): Couldn't find port for VF<br>
> hn_vf_add(): RNDIS reports VF but device not found, retrying<br>
> hn_vf_attach(): Couldn't find port for VF<br>
> hn_vf_add(): RNDIS reports VF but device not found, retrying<br>
> and so on in a loop<br>
> <br>
> Also, with debug logs I see<br>
> <br>
> mlx5_common: DevX read access NIC register=0X9055 failed errno=22 status=0<br>
> syndrome=0<br>
> mlx5_common: DevX read access NIC register=0X9055 failed errno=22 status=0<br>
> syndrome=0<br>
> mlx5_common: DevX read access NIC register=0X9055 failed errno=22 status=0<br>
> syndrome=0<br>
> <br>
> <br>
> The DPDK version is 22.11, running on<br>
> Linux dpdk0 5.15.0-1053-azure #61~20.04.1-Ubuntu<br>
> VM type D8ls v5, accelerated networking is on for two ports<br>
> <br>
> driverctl -b vmbus list-devices<br>
> <br>
> 000d3a1c-e0df-000d-3a1c-e0df000d3a1c hv_netvsc<br>
> 000d3a1e-4573-000d-3a1e-4573000d3a1e uio_hv_generic [*]<br>
> 000d3a1e-47da-000d-3a1e-47da000d3a1e uio_hv_generic [*]<br>
> <br>
> <br>
> Any, ideas what I might be doing wrong? I see the same behavior with<br>
> testpmd and my app.<br>
<br>
Looks like a mlx5 driver issue, which kernel driver are you using?<br>
The netvsc code sees a VF but can't use it because of the mlx5 errors.<br>
</blockquote></div>