diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-05-20 03:47:57 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-05-20 03:47:57 +0000 |
commit | 27a017d60e3229f6c92f41f481cf12a9a8946cd5 (patch) | |
tree | 343f0e3be1beabb33f55fda747fe9215417976f5 /sys/dev/ic/re.c | |
parent | 976ca9a4c08c9df27f252e281d1c258357232ede (diff) |
set if_jumbo_mtu and the IFCAP_JUMBO_MTU capabilities flag where
appropriate.
ok reyk@
Diffstat (limited to 'sys/dev/ic/re.c')
-rw-r--r-- | sys/dev/ic/re.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index a76874e54f9..843a7b542c7 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.20 2006/05/16 02:15:23 brad Exp $ */ +/* $OpenBSD: re.c,v 1.21 2006/05/20 03:47:56 brad Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -875,14 +875,16 @@ re_attach_common(struct rl_softc *sc) ifp->if_start = re_start; ifp->if_watchdog = re_watchdog; ifp->if_init = re_init; - if (sc->rl_type == RL_8169) + if (sc->rl_type == RL_8169) { ifp->if_baudrate = 1000000000; - else + ifp->if_jumbo_mtu = RL_JUMBO_MTU; + ifp->if_capabilities |= IFCAP_JUMBO_MTU; + } else ifp->if_baudrate = 100000000; IFQ_SET_MAXLEN(&ifp->if_snd, RL_IFQ_MAXLEN); IFQ_SET_READY(&ifp->if_snd); - ifp->if_capabilities = IFCAP_VLAN_MTU; + ifp->if_capabilities |= IFCAP_VLAN_MTU; #ifdef RE_CSUM_OFFLOAD ifp->if_capabilities |= IFCAP_CSUM_IPv4|IFCAP_CSUM_TCPv4| @@ -890,7 +892,7 @@ re_attach_common(struct rl_softc *sc) #endif #ifdef RE_VLAN - ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING; + ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING; #endif timeout_set(&sc->timer_handle, re_tick, sc); |