<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Thank you for the response.</div><div>Yes, these capabilities are necessary in order to run dpdk-testpmd inside a container. However, they are not sufficient.</div><div>I tried again with a 6.8 kernel and the Nvidia tools/libraries suite: "doca-host_3.1.0-091000-25.07-ubuntu2404_amd64.deb".</div><div>The log is more informative this time: "mlx5_common: DevX create TIS failed errno=121 status=0x3 syndrome=0x6a6678".</div><div>Do you have any idea how to investigate this issue, especially regarding "status" and "syndrome"?</div></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Aug 25, 2025 at 2:24 PM David Marchand <<a href="mailto:david.marchand@redhat.com">david.marchand@redhat.com</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 Mon, 25 Aug 2025 at 14:09, Julien <<a href="mailto:julien.marcin.tech@gmail.com" target="_blank">julien.marcin.tech@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> I have a question about using the mlx5 driver with LXC.<br>
> I'm trying to use dpdk-testpmd in an LXC container whose root user isn't mapped to the host's root user.<br>
> Note: The entire physical interface is given to the LXC container, not a virtual interface.<br>
><br>
> The following error occured:<br>
> mlx5_common: DevX create TIS failed errno=22 status=0 syndrome=0<br>
> mlx5_net: Failed to create TIS 0/0 for [bonding] device mlx5_2.<br>
> mlx5_net: TIS allocation failure<br>
> mlx5_net: probe of PCI device 0000:27:00.0 aborted after encountering an error: Cannot allocate memory<br>
> mlx5_common: Failed to load driver mlx5_eth<br>
> EAL: Requested device 0000:27:00.0 cannot be used<br>
> EAL: Bus (pci) probe failed.<br>
><br>
> The "transport_domain" is created, and the mlx5_devx_cmd_create_td() function runs normally.<br>
> The call to mlx5dv_devx_obj_create() receives an errno of 22.<br>
><br>
> I don't encounter any problems when the container's root user is mapped to the host's root user.<br>
> Has anyone experienced this before?<br>
> Is it possible to use the driver in an unprivileged LXC container?<br>
<br>
There is probably something missing in terms of capabilities.<br>
I don't know how LXC behaves in this regard.<br>
<br>
I suggest you look at "5.5.1.5. Run as Non-Root" in<br>
<a href="https://doc.dpdk.org/guides/platform/mlx5.html" rel="noreferrer" target="_blank">https://doc.dpdk.org/guides/platform/mlx5.html</a>.<br>
<br>
<br>
-- <br>
David Marchand<br>
<br>
</blockquote></div></div>