Page MenuHomeFreeBSD

mlx5/mlx5ib: Azure/HyperV OFED failing to create IB verbs device
Needs ReviewPublic

Authored by vag.singh_oneconvergence.com on Sep 28 2021, 1:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 3:47 PM
Unknown Object (File)
Dec 20 2023, 3:43 AM
Unknown Object (File)
Oct 30 2023, 10:46 PM
Unknown Object (File)
Jul 4 2023, 12:34 AM
Unknown Object (File)
May 20 2023, 1:02 AM
Unknown Object (File)
May 4 2023, 11:10 PM
Unknown Object (File)
May 4 2023, 11:09 PM
Unknown Object (File)
Mar 23 2023, 6:19 AM

Details

Reviewers
kib
hselasky
Summary

[PATCH 08/31] FreeBSD OFED support for DPDK MLX5 PMD

a) Refactor the netdev notifier registration into a small helper function.
This is a pre-step towards having mlx5 IB device over an Ethernet port
which doesn't support RoCE. Also, renamed the de-registration helper
and the new helper as netdev notifier and not roce, to make it clear
this is not only used with roce.

b) Rename RoCE related helpers to reflect being Eth ones
This is a pre-step towards having mlx5 IB device also over Eth ports where
RoCE is not supported. We change the roce enable/disable and roce_lag
init/fini function names to have _eth instead of _roce.

c) Support RAW Ethernet when RoCE is disabled
On some environments, such as certain SRIOV VF configurations, RoCE is
not supported for mlx5 Ethernet ports. Currently, the driver will not
open IB device on that port.
This is problematic, since we do want user-space RAW Ethernet (RAW_PACKET
QPs) functionality to remain in place. For that end, enhance the relevant
driver flows such that we do create a device instance in that case.

Test Plan

Tested on KVM, ESXi, and HyperV/Azure Hypervisors with FreeBSD 14.0-CURRENT and FreeBSD12.1-STABLE.

iperf
DPDK MLX5 PMD/testpmd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped