diff options
author | 2005-11-27 06:37:13 +0000 | |
---|---|---|
committer | 2005-11-27 06:37:13 +0000 | |
commit | ddb87b6709ebf9b2cb19d4616c52ee2f8d85f5d1 (patch) | |
tree | eb7c1135ed778f84d1f3bb7c0c3d60acd39d34e7 /sys/dev/pci/if_em.c | |
parent | Fix ami_freemem() by initializing segp before using it. (diff) | |
download | wireguard-openbsd-ddb87b6709ebf9b2cb19d4616c52ee2f8d85f5d1.tar.xz wireguard-openbsd-ddb87b6709ebf9b2cb19d4616c52ee2f8d85f5d1.zip |
Since reception of Jumbo frames is enabled by default; ensure proper
alignment with m_adj() in em_get_buf() whether the MTU is bumped higher
or not.
Diffstat (limited to 'sys/dev/pci/if_em.c')
-rw-r--r-- | sys/dev/pci/if_em.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index eee026c6b29..52fb65b356a 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_em.c,v 1.95 2005/11/26 19:05:24 brad Exp $ */ +/* $OpenBSD: if_em.c,v 1.96 2005/11/27 06:37:13 brad Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ #include <dev/pci/if_em.h> @@ -2006,9 +2006,7 @@ em_get_buf(int i, struct em_softc *sc, struct mbuf *nmp) mp->m_next = NULL; } - if (ifp->if_mtu <= ETHERMTU) { - m_adj(mp, ETHER_ALIGN); - } + m_adj(mp, ETHER_ALIGN); rx_buffer = &sc->rx_buffer_area[i]; |