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.
Tags
None
Referenced Files
F176236515: D60698.diff
Sat, Oct 17, 5:23 AM
Unknown Object (File)
Fri, Oct 16, 2:35 PM
Unknown Object (File)
Fri, Oct 16, 10:04 AM
Unknown Object (File)
Thu, Oct 15, 8:18 AM
Unknown Object (File)
Wed, Oct 14, 12:01 PM
Unknown Object (File)
Wed, Oct 14, 8:59 AM
Unknown Object (File)
Wed, Oct 14, 8:45 AM
Unknown Object (File)
Wed, Oct 14, 5:21 AM
Subscribers

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