From 35f70ae1d3b9ebcc2d2d3dcf8be4032f10970156 Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Sun, 16 Dec 2007 05:11:42 +0000 Subject: [PATCH] overlead mbuf fields for use by toe --- sys/dev/cxgb/cxgb_osdep.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sys/dev/cxgb/cxgb_osdep.h b/sys/dev/cxgb/cxgb_osdep.h index aa5df0486976..cf5a8b62f2a2 100644 --- a/sys/dev/cxgb/cxgb_osdep.h +++ b/sys/dev/cxgb/cxgb_osdep.h @@ -66,6 +66,22 @@ struct t3_mbuf_hdr { #define m_get_priority(m) ((uintptr_t)(m)->m_pkthdr.rcvif) #define m_set_priority(m, pri) ((m)->m_pkthdr.rcvif = (struct ifnet *)((uintptr_t)pri)) +#define m_set_sgl(m, sgl) ((m)->m_pkthdr.header = (sgl)) +#define m_get_sgl(m) ((bus_dma_segment_t *)(m)->m_pkthdr.header) +#define m_set_sgllen(m, len) ((m)->m_pkthdr.ether_vtag = len) +#define m_get_sgllen(m) ((m)->m_pkthdr.ether_vtag) + +/* + * XXX FIXME + */ +#define m_set_toep(m, a) ((m)->m_pkthdr.header = (a)) +#define m_get_toep(m) ((m)->m_pkthdr.header) +#define m_set_handler(m, handler) ((m)->m_pkthdr.header = (handler)) + +#define m_set_socket(m, a) ((m)->m_pkthdr.header = (a)) +#define m_get_socket(m) ((m)->m_pkthdr.header) + +#define MT_DONTFREE 128 #if __FreeBSD_version > 700030 #define INTR_FILTERS