]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Encapsulate the code responsible for initializing a new TX descriptor
authormux <mux@FreeBSD.org>
Mon, 7 Mar 2005 13:20:49 +0000 (13:20 +0000)
committermux <mux@FreeBSD.org>
Mon, 7 Mar 2005 13:20:49 +0000 (13:20 +0000)
commit3ed75489459a58ade0f9e2d49f26a3fe6434583d
treef02dc8fa3320e06d09a8c7049a8b859d3249f509
parent360a1da14df362b5cd506c19c883bb3c9e19a549
- Encapsulate the code responsible for initializing a new TX descriptor
  from an mbuf into the fxp_encap() function, as done in other drivers.
- Don't waste time calling bus_dmamap_load_mbuf() if we know the mbuf
  chain is too long to fit in a TX descriptor, call m_defrag() first.
- Convert fxp(4) to use bus_dmamap_load_mbuf_sg().
sys/dev/fxp/if_fxp.c
sys/dev/fxp/if_fxpvar.h