From: dlg Date: Thu, 9 Apr 2015 02:08:55 +0000 (+0000) Subject: to quote jim smith: X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a7f0b6ad717793d46647c323ffcbf1226ceb37db;p=openbsd to quote jim smith: > fix a regression on re chips which have > 7k jumbo support (RL_JUMBO_MTU_7K) as reported by daniel jakots > and emilio perea. the regression was caused because RL_JUMBO_FRAMELEN > was changed to 9k and i missed fixing up the RL_JUMBO_MTU_7K macro. nice of him to fix the thing he broke ;) ok sthen@ --- diff --git a/sys/dev/ic/rtl81x9reg.h b/sys/dev/ic/rtl81x9reg.h index 1024a1a3fb5..c155e7286d0 100644 --- a/sys/dev/ic/rtl81x9reg.h +++ b/sys/dev/ic/rtl81x9reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9reg.h,v 1.93 2015/03/20 12:04:09 dlg Exp $ */ +/* $OpenBSD: rtl81x9reg.h,v 1.94 2015/04/09 02:08:55 dlg Exp $ */ /* * Copyright (c) 1997, 1998 @@ -751,7 +751,7 @@ struct rl_stats { #define RL_JUMBO_MTU_6K \ ((6 * 1024) - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN) #define RL_JUMBO_MTU_7K \ - (RL_JUMBO_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN) + ((7 * 1024) - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN) #define RL_JUMBO_MTU_9K \ ((9 * 1024) - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN) #define RL_MTU ETHERMTU