From owner-freebsd-current@FreeBSD.ORG Sun Dec 7 01:05:12 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A2DD16A4CE; Sun, 7 Dec 2003 01:05:12 -0800 (PST) Received: from sbk-gw.sibnet.ru (sbk-gw.sibnet.ru [217.70.96.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8281E43FE0; Sun, 7 Dec 2003 01:05:09 -0800 (PST) (envelope-from stranger@sberbank.sibnet.ru) Received: from sbk-gw.sibnet.ru (localhost [127.0.0.1]) by sbk-gw.sibnet.ru (8.12.9p2/8.12.9) with ESMTP id hB794t9q035468; Sun, 7 Dec 2003 15:04:55 +0600 (NOVT) (envelope-from stranger@sberbank.sibnet.ru) Received: from localhost (stranger@localhost)hB794rTP035465; Sun, 7 Dec 2003 15:04:55 +0600 (NOVT) (envelope-from stranger@sberbank.sibnet.ru) X-Authentication-Warning: sbk-gw.sibnet.ru: stranger owned process doing -bs Date: Sun, 7 Dec 2003 15:04:51 +0600 (NOVT) From: "Maxim M. Kazachek" X-X-Sender: stranger@sbk-gw.sibnet.ru To: Jun Kuriyama In-Reply-To: <7m8ylp6pn0.wl@black.imgsrc.co.jp> Message-ID: <20031207150250.L35454@sbk-gw.sibnet.ru> References: <7m8ylp6pn0.wl@black.imgsrc.co.jp> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-1.5 required=7.5 tests=AWL,BAYES_01 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on sbk-gw.sibnet.ru cc: Current cc: pdeuskar@freebsd.org Subject: Re: dev/em: Link is not up until 2 seconds after "ifconfig up" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2003 09:05:12 -0000 On Sun, 7 Dec 2003, Jun Kuriyama wrote: > >My experimental 1U box which has em0 and em1 shows following result. >Doing "ifconfig em1 up" after "ifconfig em1 down", link is down 1 or >more seconds. I'm trying to make this box as VRRP router, so 1 >second down during master/backup transition (which uses down, mac >address setting, and up) causes ping-pong transition of master router. > >I think I can work around some timeout tweaks in VRRP daemon side, but >I hope em(4) driver (or hardware problem?) can deal with it. I did >same test with fxp(4) and rl(4), but these interfaces are active after >"ifconfig up" immediately. > > ># ifconfig em1 down; ifconfig em1 up; ifconfig em1; sleep 1; ifconfig em1; sleep 1; ifconfig em1 >em1: flags=8843 mtu 1500 > options=3 > inet 192.168.128.3 netmask 0xffffff00 broadcast 192.168.128.255 > inet6 fe80::230:48ff:fe28:4d75%em1 prefixlen 64 scopeid 0x2 > ether 00:30:48:28:4d:75 > media: Ethernet autoselect > status: no carrier >em1: flags=8843 mtu 1500 > options=3 > inet 192.168.128.3 netmask 0xffffff00 broadcast 192.168.128.255 > inet6 fe80::230:48ff:fe28:4d75%em1 prefixlen 64 scopeid 0x2 > ether 00:30:48:28:4d:75 > media: Ethernet autoselect > status: no carrier >em1: flags=8843 mtu 1500 > options=3 > inet 192.168.128.3 netmask 0xffffff00 broadcast 192.168.128.255 > inet6 fe80::230:48ff:fe28:4d75%em1 prefixlen 64 scopeid 0x2 > ether 00:30:48:28:4d:75 > media: Ethernet autoselect (100baseTX ) > status: active > ># pciconf -lv >... >em0@pci2:3:0: class=0x020000 card=0x10118086 chip=0x10108086 rev=0x01 hdr=0x00 > vendor = 'Intel Corporation' > device = '82546EB Gigabit Ethernet Controller (copper)' > class = network > subclass = ethernet >em1@pci2:3:1: class=0x020000 card=0x10118086 chip=0x10108086 rev=0x01 hdr=0x00 > vendor = 'Intel Corporation' > device = '82546EB Gigabit Ethernet Controller (copper)' > class = network > subclass = ethernet >... > > Did you tried to specify link speed rather than use autosence. Perhaps this delay is due to media sense? Sincerely, Maxim M. Kazachek mailto:stranger@sberbank.sibnet.ru mailto:stranger@fpm.ami.nstu.ru