Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/netmap/netmap_kern.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
#define WITH_VALE // comment out to disable VALE support | #define WITH_VALE // comment out to disable VALE support | ||||
#define WITH_PIPES | #define WITH_PIPES | ||||
#define WITH_MONITOR | #define WITH_MONITOR | ||||
#define WITH_GENERIC | #define WITH_GENERIC | ||||
#endif | #endif | ||||
#if defined(__FreeBSD__) | #if defined(__FreeBSD__) | ||||
#include <sys/selinfo.h> | |||||
#define likely(x) __builtin_expect((long)!!(x), 1L) | #define likely(x) __builtin_expect((long)!!(x), 1L) | ||||
#define unlikely(x) __builtin_expect((long)!!(x), 0L) | #define unlikely(x) __builtin_expect((long)!!(x), 0L) | ||||
#define NM_LOCK_T struct mtx /* low level spinlock, used to protect queues */ | #define NM_LOCK_T struct mtx /* low level spinlock, used to protect queues */ | ||||
#define NM_MTX_T struct sx /* OS-specific mutex (sleepable) */ | #define NM_MTX_T struct sx /* OS-specific mutex (sleepable) */ | ||||
#define NM_MTX_INIT(m) sx_init(&(m), #m) | #define NM_MTX_INIT(m) sx_init(&(m), #m) | ||||
▲ Show 20 Lines • Show All 1,604 Lines • Show Last 20 Lines |