aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mxge/if_mxge_var.h
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2008-11-22 05:55:56 +0000
committerKip Macy <kmacy@FreeBSD.org>2008-11-22 05:55:56 +0000
commitdb7f0b974f2ab273540a458ab50929ccbb1aa581 (patch)
tree0291af1a0fda6ca2d8e62cb1f363d45baefe0303 /sys/dev/mxge/if_mxge_var.h
parent2a1b9f07fc64f33b96e7077bedaafc167afc2625 (diff)
downloadsrc-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/mxge/if_mxge_var.h')
-rw-r--r--sys/dev/mxge/if_mxge_var.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/mxge/if_mxge_var.h b/sys/dev/mxge/if_mxge_var.h
index 21127862dc74..e57c637f300b 100644
--- a/sys/dev/mxge/if_mxge_var.h
+++ b/sys/dev/mxge/if_mxge_var.h
@@ -279,6 +279,8 @@ struct mxge_media_type
/* implement our own memory barriers, since bus_space_barrier
cannot handle write-combining regions */
+#if __FreeBSD_version < 800053
+
#if defined (__GNUC__)
#if #cpu(i386) || defined __i386 || defined i386 || defined __i386__ || #cpu(x86_64) || defined __x86_64__
#define mb() __asm__ __volatile__ ("sfence;": : :"memory")
@@ -293,6 +295,8 @@ struct mxge_media_type
#error "unknown compiler"
#endif
+#endif
+
static inline void
mxge_pio_copy(volatile void *to_v, void *from_v, size_t size)
{