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 29, 4:53 PM
Unknown Object (File)
Mon, Apr 29, 4:37 PM
Unknown Object (File)
Tue, Apr 16, 3:47 PM
Unknown Object (File)
Apr 8 2024, 12:49 PM
Unknown Object (File)
Feb 20 2024, 7:54 PM
Unknown Object (File)
Dec 20 2023, 5:25 AM
Unknown Object (File)
Nov 7 2023, 10:56 PM
Unknown Object (File)
Oct 30 2023, 10:46 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