overlead mbuf fields for use by toe

This commit is contained in:
Kip Macy 2007-12-16 05:11:42 +00:00
parent 92328e3882
commit 35f70ae1d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174638

View File

@ -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