summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-06-01 21:53:53 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-06-01 21:53:53 +0000
commit20f89bbcc5d6c07bcd23afa265c38ab9fdf9d140 (patch)
treeffd51f7cc03579bbde01014bdb85ade212c07530 /sys
parentb89f9d40f1fe1476b0c5078e2a2e451157066db2 (diff)
The largest allowable frame size is 9622 bytes.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_xge.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/if_xge.c b/sys/dev/pci/if_xge.c
index aa3f634272a..dd99f676c5a 100644
--- a/sys/dev/pci/if_xge.c
+++ b/sys/dev/pci/if_xge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xge.c,v 1.19 2006/06/01 09:39:13 brad Exp $ */
+/* $OpenBSD: if_xge.c,v 1.20 2006/06/01 21:53:52 brad Exp $ */
/* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */
/*
@@ -272,8 +272,9 @@ struct cfdriver xge_cd = {
/*
* Non-tunable constants.
*/
-#define XGE_MAX_FRAMELEN 9600
-#define XGE_MAX_MTU (XGE_MAX_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN)
+#define XGE_MAX_FRAMELEN 9622
+#define XGE_MAX_MTU (XGE_MAX_FRAMELEN - ETHER_HDR_LEN - \
+ ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN)
#define XGE_TYPE_XENA 1 /* Xframe-I */
#define XGE_TYPE_HERC 2 /* Xframe-II */