HomeFreeBSD

librdmacm/libibverbs: Add bnxtre RDMA provider to OFED build infrastructure

Description

librdmacm/libibverbs: Add bnxtre RDMA provider to OFED build infrastructure

Extend the FreeBSD OFED build framework to include the Broadcom bnxtre RDMA
provider library.

This change:

-Registers libbnxtre in src.libnames.mk so it is built and installed as part

of the OFED libraries.

-Adds bnxtre to the OFED pcap dependency set when MK_OFED is enabled.
-Declares proper dependency mappings for bnxtre (ibverbs, pthread).
-Introduces LIBBNXTREDIR for consistent object directory handling.
-Updates libibverbs and librdmacm build rules to link against libbnxtre,

enabling Broadcom RoCE device support at runtime.

-libbnxtre library uses below constructor to register with the libibverbs,

static attribute((constructor)) void bnxt_re_register_driver(void)

These updates ensure that applications using libibverbs and librdmacm can
discover and use Broadcom bnxt RDMA devices on FreeBSD.

Reviewed by: markj, ssaxena
Differential Revision: https://reviews.freebsd.org/D54368
MFC after: 3 days

(cherry picked from commit 821c6c43a33d5b72290ee7f896d28438a3b789e1)

Details

Provenance
sreekanth.reddy_broadcom.comAuthored on Jan 9 2026, 11:34 AM
sumit.saxena_broadcom.comCommitted on Feb 27 2026, 12:04 PM
Reviewer
markj
Differential Revision
D54368: librdmacm/libibverbs: Add bnxtre RDMA provider to OFED build infrastructure
Parents
rG4243e2e99654: Makefile.inc1: Fix the libbnxtre dependency target
Branches
Unknown
Tags
Unknown