Page MenuHomeFreeBSD

if_bnxt: fix powerpc build of the MPC ring code
ClosedPublic

Authored by sumit.saxena_broadcom.com on Tue, Oct 13, 9:19 AM.

Details

Summary

powerpc has no 16-bit acquire/release atomics, so the
atomic_load_acq_16() and atomic_store_rel_16() calls on the MPC TX
ring indices fail to build there. Make the producer and consumer
indices 32 bits wide and use the 32-bit primitives.

Fixes: 088a42c0ff76 ("if_bnxt: add MPC (Mid-Path Channel) ring infrastructure")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable