Replace m_extadd() with macro version MEXTADD().

This commit is contained in:
andre 2005-09-19 22:04:41 +00:00
parent 9f43a3ce6e
commit 3f2b548b71
2 changed files with 4 additions and 4 deletions

View File

@ -457,7 +457,7 @@ hatm_rx_buffer(struct hatm_softc *sc, u_int group, u_int handle)
if (m != NULL) {
m->m_ext.ref_cnt = &c0->hdr.ref_cnt;
m_extadd(m, (void *)c0, MBUF0_SIZE,
MEXTADD(m, (void *)c0, MBUF0_SIZE,
hatm_mbuf0_free, sc, M_PKTHDR, EXT_EXTREF);
m->m_data += MBUF0_OFFSET;
} else
@ -481,7 +481,7 @@ hatm_rx_buffer(struct hatm_softc *sc, u_int group, u_int handle)
if (m != NULL) {
m->m_ext.ref_cnt = &c1->hdr.ref_cnt;
m_extadd(m, (void *)c1, MBUF1_SIZE,
MEXTADD(m, (void *)c1, MBUF1_SIZE,
hatm_mbuf1_free, sc, M_PKTHDR, EXT_EXTREF);
m->m_data += MBUF1_OFFSET;
} else

View File

@ -405,11 +405,11 @@ patm_rcv_mbuf(struct patm_softc *sc, void *buf, u_int h, int hdr)
}
if ((h & ~MBUF_HMASK) == MBUF_VHANDLE) {
m_extadd(m, (caddr_t)buf, VMBUF_SIZE, mbp_ext_free,
MEXTADD(m, (caddr_t)buf, VMBUF_SIZE, mbp_ext_free,
sc->vbuf_pool, M_PKTHDR, EXT_NET_DRV);
m->m_data += VMBUF_OFFSET;
} else {
m_extadd(m, (caddr_t)buf, SMBUF_SIZE, mbp_ext_free,
MEXTADD(m, (caddr_t)buf, SMBUF_SIZE, mbp_ext_free,
sc->sbuf_pool, M_PKTHDR, EXT_NET_DRV);
m->m_data += SMBUF_OFFSET;
}