Page MenuHomeFreeBSD

verbs/mlx5: Annotate ibv_wc and ibv_send_wr with endian
Needs ReviewPublic

Authored by vag.singh_oneconvergence.com on Sep 28 2021, 1:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 14, 1:17 AM
Unknown Object (File)
Sun, Jul 12, 12:26 AM
Unknown Object (File)
Wed, Jul 8, 4:24 AM
Unknown Object (File)
Fri, Jul 3, 1:41 PM
Unknown Object (File)
Jun 8 2026, 9:49 AM
Unknown Object (File)
May 30 2026, 7:36 AM
Unknown Object (File)
May 30 2026, 4:31 AM
Unknown Object (File)
May 28 2026, 1:40 PM

Details

Reviewers
kib
hselasky
Summary

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

a) verbs: Annotate ibv_wc helpers with endian
This follows the scheme as used in the wc by introducing a
ibv_wc_read_invalidated_rkey to access the host endian
invalidated_rkey value with proper annotations.
This is just an inline wrapper to allow sparse to work sensibly,
not really a good reason to add another driver entry point.

b) verbs: Annotate ibv_send_wr with endian
This follows the scheme as used in the wc by introducing a
transparent union in ibv_send_wr to indicate the invalidate_rkey
is in host endian.

c) mlx5: Add sparse annotations.

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

Event Timeline