From 3a1cdb75b1f8c55619b456d1e39f7932b059498c Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 11 Oct 2007 19:44:40 +0000 Subject: Make BGE_JUMBO_FRAMELEN big enough to include vlan tag. Fixes problems with receiving jumbo frames on bge(4). ok krw@ --- sys/dev/pci/if_bgereg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/dev/pci/if_bgereg.h b/sys/dev/pci/if_bgereg.h index 85c9107638b..a97ca14f45f 100644 --- a/sys/dev/pci/if_bgereg.h +++ b/sys/dev/pci/if_bgereg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bgereg.h,v 1.72 2007/02/10 01:23:19 krw Exp $ */ +/* $OpenBSD: if_bgereg.h,v 1.73 2007/10/11 19:44:39 kettenis Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -2212,8 +2212,8 @@ struct bge_gib { * boundary. */ -#define BGE_JUMBO_FRAMELEN 9018 -#define BGE_JUMBO_MTU (BGE_JUMBO_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN) +#define BGE_JUMBO_FRAMELEN 9022 +#define BGE_JUMBO_MTU (BGE_JUMBO_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN) #define BGE_PAGE_SIZE PAGE_SIZE /* -- cgit v1.2.3