diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-11-27 06:37:14 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-11-27 06:37:14 +0000 |
commit | 754ac0d779c450b8b017c5f39fe7006ead756fea (patch) | |
tree | 05455e1ad94b52d71add45b753aea66eb0644420 /sys/dev/pci/if_em.c | |
parent | d78d9cdac04ad2904e0b992dffd73750e613198b (diff) |
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]; |