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
F133193648: D32190.id95847.diff
Thu, Oct 23, 8:39 PM
Unknown Object (File)
Thu, Oct 23, 3:50 AM
Unknown Object (File)
Wed, Oct 22, 9:57 PM
Unknown Object (File)
Wed, Oct 22, 9:57 PM
Unknown Object (File)
Wed, Oct 22, 12:44 PM
Unknown Object (File)
Wed, Oct 22, 1:02 AM
Unknown Object (File)
Aug 14 2025, 6:30 AM
Unknown Object (File)
Jul 27 2025, 11:18 AM

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