summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2004-12-08 04:26:54 +0000
committerBrad Smith <brad@cvs.openbsd.org>2004-12-08 04:26:54 +0000
commita731a96696dbf3288d4789714b2401437c162ca8 (patch)
treebe5c9b303e53c762acd151b78cf20366e8116ae4 /sys/dev/pci
parent44b5ad1eb2e266db8c01654ed95424a75b8653db (diff)
use ETHER_MAX_LEN
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_sk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c
index d38caf5b6ed..fa3d7b0ae6f 100644
--- a/sys/dev/pci/if_sk.c
+++ b/sys/dev/pci/if_sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sk.c,v 1.52 2004/12/08 01:45:04 krw Exp $ */
+/* $OpenBSD: if_sk.c,v 1.53 2004/12/08 04:26:53 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -2287,7 +2287,7 @@ sk_init_xmac(struct sk_if_softc *sc_if)
XM_MODE_RX_GIANTS|XM_MODE_RX_RUNTS|XM_MODE_RX_CRCERRS|
XM_MODE_RX_INRANGELEN);
- if (ifp->if_mtu > (ETHERMTU + ETHER_HDR_LEN + ETHER_CRC_LEN))
+ if (ifp->if_mtu > ETHER_MAX_LEN)
SK_XM_SETBIT_2(sc_if, XM_RXCMD, XM_RXCMD_BIGPKTOK);
else
SK_XM_CLRBIT_2(sc_if, XM_RXCMD, XM_RXCMD_BIGPKTOK);