View | Details | Raw Unified | Return to bug 271288 | Differences between
and this patch

Collapse All | Expand All

(-)usr/src/sys/dev/virtio/network/if_vtnet.c (+10 lines)
Lines 1541-1547 Link Here
1541
			return (NULL);
1541
			return (NULL);
1542
		}
1542
		}
1543
1543
1544
#ifdef __ARM_ARCH
1545
#define VTNET_ALIGNMENT_FUDGE	2
1546
		m->m_data += VTNET_ALIGNMENT_FUDGE;
1547
1548
		KASSERT(size > VTNET_ALIGNMENT_FUDGE,
1549
			("%s: mbuf size (%d) is smaller than VTNET_ALIGNMENT_FUDGE (%d)", __func__, size, VTNET_ALIGNMENT_FUDGE));
1550
1551
		m->m_len = size - VTNET_ALIGNMENT_FUDGE;
1552
#else
1544
		m->m_len = size;
1553
		m->m_len = size;
1554
#endif
1545
		if (m_head != NULL) {
1555
		if (m_head != NULL) {
1546
			m_tail->m_next = m;
1556
			m_tail->m_next = m;
1547
			m_tail = m;
1557
			m_tail = m;

Return to bug 271288