summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_em.c
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2005-11-27 06:37:13 +0000
committerbrad <brad@openbsd.org>2005-11-27 06:37:13 +0000
commitddb87b6709ebf9b2cb19d4616c52ee2f8d85f5d1 (patch)
treeeb7c1135ed778f84d1f3bb7c0c3d60acd39d34e7 /sys/dev/pci/if_em.c
parentFix ami_freemem() by initializing segp before using it. (diff)
downloadwireguard-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.c6
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];