Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mbuf.h
Show First 20 Lines • Show All 1,449 Lines • ▼ Show 20 Lines | |||||
#define M_GETFIB(_m) rt_m_getfib(_m) | #define M_GETFIB(_m) rt_m_getfib(_m) | ||||
#define M_SETFIB(_m, _fib) do { \ | #define M_SETFIB(_m, _fib) do { \ | ||||
KASSERT((_m)->m_flags & M_PKTHDR, ("Attempt to set FIB on non header mbuf.")); \ | KASSERT((_m)->m_flags & M_PKTHDR, ("Attempt to set FIB on non header mbuf.")); \ | ||||
((_m)->m_pkthdr.fibnum) = (_fib); \ | ((_m)->m_pkthdr.fibnum) = (_fib); \ | ||||
} while (0) | } while (0) | ||||
/* flags passed as first argument for "m_ether_tcpip_hash()" */ | /* flags passed as first argument for "m_xxx_tcpip_hash()" */ | ||||
#define MBUF_HASHFLAG_L2 (1 << 2) | #define MBUF_HASHFLAG_L2 (1 << 2) | ||||
#define MBUF_HASHFLAG_L3 (1 << 3) | #define MBUF_HASHFLAG_L3 (1 << 3) | ||||
#define MBUF_HASHFLAG_L4 (1 << 4) | #define MBUF_HASHFLAG_L4 (1 << 4) | ||||
/* mbuf hashing helper routines */ | /* mbuf hashing helper routines */ | ||||
uint32_t m_ether_tcpip_hash_init(void); | uint32_t m_ether_tcpip_hash_init(void); | ||||
uint32_t m_ether_tcpip_hash(const uint32_t, const struct mbuf *, const uint32_t); | uint32_t m_ether_tcpip_hash(const uint32_t, const struct mbuf *, const uint32_t); | ||||
uint32_t m_infiniband_tcpip_hash_init(void); | |||||
uint32_t m_infiniband_tcpip_hash(const uint32_t, const struct mbuf *, const uint32_t); | |||||
#ifdef MBUF_PROFILING | #ifdef MBUF_PROFILING | ||||
void m_profile(struct mbuf *m); | void m_profile(struct mbuf *m); | ||||
#define M_PROFILE(m) m_profile(m) | #define M_PROFILE(m) m_profile(m) | ||||
#else | #else | ||||
#define M_PROFILE(m) | #define M_PROFILE(m) | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |