Page MenuHomeFreeBSD

verbs/mlx5: Annotate ibv_wc and ibv_send_wr with endian
ClosedPublic

Authored by vag.singh_oneconvergence.com on Sep 28 2021, 1:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 6, 2:19 AM
Unknown Object (File)
Sat, Sep 5, 12:38 PM
Unknown Object (File)
Thu, Sep 3, 1:00 PM
Unknown Object (File)
Thu, Sep 3, 11:55 AM
Unknown Object (File)
Wed, Sep 2, 11:12 AM
Unknown Object (File)
Tue, Sep 1, 12:13 PM
Unknown Object (File)
Tue, Sep 1, 12:11 PM
Unknown Object (File)
Mon, Aug 31, 11:30 AM

Details

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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Wed, Sep 16, 2:13 PM
This revision was automatically updated to reflect the committed changes.