Skip to content

Commit

Permalink
Revert "vtnet: Adjust rx buffer so IP header 32-bit aligned"
Browse files Browse the repository at this point in the history
This reverts commit 9e6d11c.

This wasn't right to start with...

Requested by: markj
  • Loading branch information
bsdimp authored and bsdjhb committed Mar 13, 2024
2 parents e514b6b + 23699ff commit e5e38d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/dev/virtio/network/if_vtnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1532,8 +1532,8 @@ vtnet_rx_alloc_buf(struct vtnet_softc *sc, int nbufs, struct mbuf **m_tailp)
m_freem(m_head);
return (NULL);
}

m->m_len = size;
m_adj(m, ETHER_ALIGN);
if (m_head != NULL) {
m_tail->m_next = m;
m_tail = m;
Expand Down

0 comments on commit e5e38d0

Please sign in to comment.