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)
Mon, Apr 13, 9:02 PM
Unknown Object (File)
Mon, Apr 13, 9:00 PM
Unknown Object (File)
Thu, Apr 2, 1:23 PM
Unknown Object (File)
Wed, Apr 1, 4:09 PM
Unknown Object (File)
Mar 13 2026, 2:18 PM
Unknown Object (File)
Feb 8 2026, 7:27 AM
Unknown Object (File)
Jan 13 2026, 10:27 PM
Unknown Object (File)
Dec 29 2025, 10:25 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