diff options
author | Kip Macy <kmacy@FreeBSD.org> | 2008-11-22 05:55:56 +0000 |
---|---|---|
committer | Kip Macy <kmacy@FreeBSD.org> | 2008-11-22 05:55:56 +0000 |
commit | db7f0b974f2ab273540a458ab50929ccbb1aa581 (patch) | |
tree | 0291af1a0fda6ca2d8e62cb1f363d45baefe0303 /sys/dev/bce | |
parent | 2a1b9f07fc64f33b96e7077bedaafc167afc2625 (diff) | |
download | src-db7f0b974f2ab273540a458ab50929ccbb1aa581.tar.gz src-db7f0b974f2ab273540a458ab50929ccbb1aa581.zip |
- bump __FreeBSD version to reflect added buf_ring, memory barriers,
and ifnet functions
- add memory barriers to <machine/atomic.h>
- 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.
Notes
Notes:
svn path=/head/; revision=185162
Diffstat (limited to 'sys/dev/bce')
-rw-r--r-- | sys/dev/bce/if_bcereg.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/bce/if_bcereg.h b/sys/dev/bce/if_bcereg.h index b05cbef8279b..001d3411b647 100644 --- a/sys/dev/bce/if_bcereg.h +++ b/sys/dev/bce/if_bcereg.h @@ -557,6 +557,8 @@ #endif /* BCE_DEBUG */ + +#if __FreeBSD_version < 800054 #if defined(__i386__) || defined(__amd64__) #define mb() __asm volatile("mfence" ::: "memory") #define wmb() __asm volatile("sfence" ::: "memory") @@ -566,6 +568,7 @@ #define rmb() #define wmb() #endif +#endif /****************************************************************************/ /* Device identification definitions. */ |