net/mlx5: add test for remote PD and CTX
authorMichael Baum <michaelba@nvidia.com>
Tue, 28 Jun 2022 14:58:40 +0000 (17:58 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 5 Jul 2022 18:01:33 +0000 (20:01 +0200)
commit85d9252e55f2a0cec836c2334ecc32ecf999c52a
treefd0e0f3de1d643209059a642415eaf8881c8ff01
parent2ddf4b110cbcd7238f32780a7453aef2ecade83b
net/mlx5: add test for remote PD and CTX

Add mlx5 internal option in testpmd similar to run-time function
"port attach" which adds another parameter named "socket" for attaching
port and add 2 devargs before.

The arguments are "cmd_fd" and "pd_handle" using to import device
created out of PMD. Testpmd application import it using IPC, and updates
the devargs list before attaching.

These arguments were added in
the commit 9d936f4f1a5e ("common/mlx5: support remote PD and CTX")

The syntax is:

  testpmd> mlx5 port attach (identifier) socket=(path)

Where "path" is the IPC socket path agreed on the remote process.

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Reviewed-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Matan Azrad <matan@nvidia.com>
doc/guides/nics/mlx5.rst
doc/guides/testpmd_app_ug/testpmd_funcs.rst
drivers/net/mlx5/mlx5_testpmd.c