Deleted Added
full compact
29c29
< __FBSDID("$FreeBSD: head/sys/mips/atheros/if_arge.c 209802 2010-07-08 14:34:15Z adrian $");
---
> __FBSDID("$FreeBSD: head/sys/mips/atheros/if_arge.c 209807 2010-07-08 14:59:32Z adrian $");
836a837,858
> * Return whether the mbuf chain is correctly aligned
> * for the arge TX engine.
> *
> * The TX engine requires each fragment to be aligned to a
> * 4 byte boundary and the size of each fragment except
> * the last to be a multiple of 4 bytes.
> */
> static int
> arge_mbuf_chain_is_tx_aligned(struct mbuf *m0)
> {
> struct mbuf *m;
>
> for (m = m0; m != NULL; m = m->m_next) {
> if((mtod(m, intptr_t) & 3) != 0)
> return 0;
> if ((m->m_next != NULL) && ((m->m_len & 0x03) != 0))
> return 0;
> }
> return 1;
> }
>
> /*
856c878
< if((mtod(m, intptr_t) & 3) != 0) {
---
> if (! arge_mbuf_chain_is_tx_aligned(m)) {