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
F102159955: D32182.diff
Fri, Nov 8, 8:45 AM
Unknown Object (File)
Sat, Oct 12, 7:05 PM
Unknown Object (File)
Oct 8 2024, 1:15 PM
Unknown Object (File)
Oct 6 2024, 7:47 AM
Unknown Object (File)
Oct 6 2024, 4:42 AM
Unknown Object (File)
Oct 5 2024, 6:12 PM
Unknown Object (File)
Oct 4 2024, 11:28 AM
Unknown Object (File)
Oct 3 2024, 1:13 PM

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