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
F86616606: D32190.id95847.diff
Sun, Jun 23, 2:27 AM
F86565388: D32190.diff
Sat, Jun 22, 7:13 AM
Unknown Object (File)
Sun, Jun 16, 6:33 AM
Unknown Object (File)
Thu, Jun 13, 6:24 PM
Unknown Object (File)
Mon, May 27, 2:06 AM
Unknown Object (File)
May 23 2024, 5:46 AM
Unknown Object (File)
Apr 29 2024, 4:53 PM
Unknown Object (File)
Apr 29 2024, 4:37 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