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 (-1 / +6 lines)
Lines 1541-1547 Link Here
1541
			return (NULL);
1541
			return (NULL);
1542
		}
1542
		}
1543
1543
1544
		m->m_len = size;
1544
		#define	VTNET_ALIGNMENT_FUDGE	2
1545
		m->m_data += VTNET_ALIGNMENT_FUDGE;
1546
1547
		KASSERT(size + VTNET_ALIGNMENT_FUDGE > 0, ("%s: mbuf size (%d) smaller than VTNET_ALIGNMENT_FUDGE", __func__, size));
1548
		m->m_len = size - VTNET_ALIGNMENT_FUDGE;
1549
1545
		if (m_head != NULL) {
1550
		if (m_head != NULL) {
1546
			m_tail->m_next = m;
1551
			m_tail->m_next = m;
1547
			m_tail = m;
1552
			m_tail = m;

Return to bug 271288