git: 23699ff23c36 - main - Revert "vtnet: Adjust rx buffer so IP header 32-bit aligned"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Dec 2023 17:24:51 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=23699ff23c36f6df1b02c1bc745d36591c712322
commit 23699ff23c36f6df1b02c1bc745d36591c712322
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-12-28 17:20:42 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-12-28 17:22:23 +0000
Revert "vtnet: Adjust rx buffer so IP header 32-bit aligned"
This reverts commit 9e6d11ce9a51d75ed6a94e180f2fb4e9188a2ba4.
This wasn't right to start with...
Requested by: markj
---
sys/dev/virtio/network/if_vtnet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c
index 360176e4f845..287af7751066 100644
--- a/sys/dev/virtio/network/if_vtnet.c
+++ b/sys/dev/virtio/network/if_vtnet.c
@@ -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;