From 20f89bbcc5d6c07bcd23afa265c38ab9fdf9d140 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 1 Jun 2006 21:53:53 +0000 Subject: The largest allowable frame size is 9622 bytes. --- sys/dev/pci/if_xge.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys') 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 */ -- cgit v1.2.3