diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-05-28 10:40:28 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-05-28 10:40:28 +0000 |
commit | 981d4188034e042fb67013f5d593b2192136fe85 (patch) | |
tree | 201ee123381eee38a74ef95e7b0a8670b5ca5159 /sys/dev/pci | |
parent | fa55687b4e86f7a25b9d512a82714baae5978be5 (diff) |
always set if_hardmtu.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_em.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index 93c481ccb57..9c18062b17c 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.128 2006/05/28 00:38:44 brad Exp $ */ +/* $OpenBSD: if_em.c,v 1.129 2006/05/28 10:40:27 brad Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ #include <dev/pci/if_em.h> @@ -1510,10 +1510,8 @@ em_setup_interface(struct em_softc *sc) ifp->if_ioctl = em_ioctl; ifp->if_start = em_start; ifp->if_watchdog = em_watchdog; - if (sc->hw.mac_type != em_82573) { - ifp->if_hardmtu = - sc->hw.max_frame_size - ETHER_HDR_LEN - ETHER_CRC_LEN; - } + ifp->if_hardmtu = + sc->hw.max_frame_size - ETHER_HDR_LEN - ETHER_CRC_LEN; IFQ_SET_MAXLEN(&ifp->if_snd, sc->num_tx_desc - 1); IFQ_SET_READY(&ifp->if_snd); |