[dpdk-dev] [PATCH 1/2] common/mlx5: share kernel interface name getter
Maxime Coquelin
maxime.coquelin at redhat.com
Thu Jun 18 17:19:39 CEST 2020
On 6/2/20 5:53 PM, Matan Azrad wrote:
> Some configuration of the mlx5 port are done by the kernel net device
> associated to the IB device represents the PCI device.
>
> The DPDK mlx5 driver uses linux system calls, for example ioctl, in
> order to configure per port configurations requested by the DPDK user.
>
> One of the basic knowledges required to access the correct kernel net
> device is its name.
>
> Move function to get interface name from IB device path to the common
> library.
>
> Signed-off-by: Matan Azrad <matan at mellanox.com>
> ---
> drivers/common/mlx5/mlx5_common.c | 88 ++++++++++++++++++++++++
> drivers/common/mlx5/mlx5_common.h | 3 +
> drivers/common/mlx5/rte_common_mlx5_version.map | 2 +
> drivers/net/mlx5/mlx5.c | 2 +-
> drivers/net/mlx5/mlx5.h | 1 -
> drivers/net/mlx5/mlx5_ethdev.c | 90 +------------------------
> 6 files changed, 96 insertions(+), 90 deletions(-)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
More information about the dev
mailing list