From 9d3bb599b193495af5419ee85be4afe9a18b6091 Mon Sep 17 00:00:00 2001 From: kmacy Date: Sat, 22 Nov 2008 05:55:56 +0000 Subject: - bump __FreeBSD version to reflect added buf_ring, memory barriers, and ifnet functions - add memory barriers to - update drivers to only conditionally define their own - add lockless producer / consumer ring buffer - remove ring buffer implementation from cxgb and update its callers - add if_transmit(struct ifnet *ifp, struct mbuf *m) to ifnet to allow drivers to efficiently manage multiple hardware queues (i.e. not serialize all packets through one ifq) - expose if_qflush to allow drivers to flush any driver managed queues This work was supported by Bitgravity Inc. and Chelsio Inc. --- sys/powerpc/include/atomic.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/powerpc') diff --git a/sys/powerpc/include/atomic.h b/sys/powerpc/include/atomic.h index d515a6a..4ac9f0c 100644 --- a/sys/powerpc/include/atomic.h +++ b/sys/powerpc/include/atomic.h @@ -39,6 +39,10 @@ #define __ATOMIC_BARRIER \ __asm __volatile("sync" : : : "memory") +#define mb() __ATOMIC_BARRIER +#define wmb() mb() +#define rmb() mb() + /* * atomic_add(p, v) * { *p += v; } -- cgit v1.1