From anton@v20.valuehost.ru Wed Jan 29 11:31:22 2003 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB06C37B401 for ; Wed, 29 Jan 2003 11:31:22 -0800 (PST) Received: from v20.valuehost.ru (v20.valuehost.ru [62.118.251.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEA0F43FB9 for ; Wed, 29 Jan 2003 11:31:21 -0800 (PST) (envelope-from anton@v20.valuehost.ru) Received: from v20.valuehost.ru (localhost [127.0.0.1]) by v20.valuehost.ru (8.12.6/8.12.6) with ESMTP id h0TJZIAu001776; Wed, 29 Jan 2003 22:35:18 +0300 (MSK) (envelope-from anton@v20.valuehost.ru) Received: (from root@localhost) by v20.valuehost.ru (8.12.6/8.12.6/Submit) id h0TJZIsp001775; Wed, 29 Jan 2003 22:35:18 +0300 (MSK) Message-Id: <200301291935.h0TJZIsp001775@v20.valuehost.ru> Date: Wed, 29 Jan 2003 22:35:18 +0300 (MSK) From: "Anton Kornev" Reply-To: "Anton Kornev" To: FreeBSD-gnats-submit@freebsd.org Cc: kant@valuehost.ru Subject: creating alias on ethernet interface cause network to hang for 33 seconds X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 47648 >Category: kern >Synopsis: creating alias on ethernet interface cause network to hang for 33 seconds >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 29 11:40:03 PST 2003 >Closed-Date: Sat May 22 11:22:22 PDT 2004 >Last-Modified: Fri Jun 4 15:40:14 PDT 2004 >Originator: Anton Kornev >Release: FreeBSD 4.7-STABLE i386 >Organization: ValueHost >Environment: System: FreeBSD v20.valuehost.ru 4.7-STABLE FreeBSD 4.7-STABLE #0: Tue Jan 28 19:24:52 MSK 2003 root@v20.valuehost.ru:/usr/src/sys/compile/V20 i386 Different i386 hosts. Sample configuration: SMP kernel, 2 * P-IV, 1GB mem, SCSI disks, 2 em0 interfaces. Latest cvsupped stable. >Description: /sbin/ifconfig em0 alias [ip] netmask 255.255.255.255 hangs network for 30-35 seconds. For example su-2.05b# /sbin/ifconfig -a em0: flags=8843 mtu 1500 options=3 inet 62.118.251.68 netmask 0xffffff00 broadcast 62.118.251.255 ether 00:07:e9:04:b0:08 media: Ethernet autoselect (100baseTX ) status: active em1: flags=8802 mtu 1500 options=3 ether 00:07:e9:04:b0:09 media: Ethernet autoselect status: no carrier sl0: flags=c010 mtu 552 faith0: flags=8002 mtu 1500 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=8010 mtu 1500 Now launch ping from any host and type /sbin/ifconfig em0 alias 62.118.251.84 netmask 255.255.255.255 and host stopped to answer icmp echo-requests kant@ahost:/usr/home/kant#ping 62.118.251.68 PING 62.118.251.68 (62.118.251.68): 56 data bytes 64 bytes from 62.118.251.68: icmp_seq=0 ttl=54 time=94.275 ms 64 bytes from 62.118.251.68: icmp_seq=1 ttl=54 time=80.934 ms 64 bytes from 62.118.251.68: icmp_seq=2 ttl=54 time=86.783 ms 64 bytes from 62.118.251.68: icmp_seq=3 ttl=54 time=88.531 ms 64 bytes from 62.118.251.68: icmp_seq=36 ttl=54 time=91.248 ms 64 bytes from 62.118.251.68: icmp_seq=37 ttl=54 time=111.068 ms 64 bytes from 62.118.251.68: icmp_seq=38 ttl=54 time=101.596 ms 64 bytes from 62.118.251.68: icmp_seq=39 ttl=54 time=80.684 ms 64 bytes from 62.118.251.68: icmp_seq=41 ttl=54 time=119.698 ms tcpdump sessions saved on the target host (62.118.251.68) also doesn't see any network activity this time. >How-To-Repeat: Obvious - see above. >Fix: unknown >Release-Note: >Audit-Trail: From: "Simon L. Nielsen" To: dpk Cc: freebsd-gnats-submit@FreeBSD.org, Anton Kornev Subject: Re: kern/47648 creating alias on ethernet interface cause network to hang for 33 seconds Date: Sat, 22 May 2004 20:18:59 +0200 --NtwzykIc2mflq5ck Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2004.05.22 10:46:52 -0700, dpk wrote: > I found this PR when trying to find information about this particular > problem (em driver pausing when you change alias information). The bug is > still present in 4.9 . Could you please try 4.10 (either a RC or the RELEASE when it comes out shortly) since this problem should be fixed in 4-STABLE (src/sys/dev/em/if_em.c v 1.2.2.18) now. --=20 Simon L. Nielsen FreeBSD Documentation Team --NtwzykIc2mflq5ck Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAr5mTh9pcDSc1mlERAl32AJ0fQp2rV6IPxuiAHWcTiXuWOmh0TwCggBU0 8W+0gyBcco911rcaVOgTTbA= =rhtG -----END PGP SIGNATURE----- --NtwzykIc2mflq5ck-- State-Changed-From-To: open->closed State-Changed-By: simon State-Changed-When: Sat May 22 11:20:54 PDT 2004 State-Changed-Why: Close the PR since mail to the originator bounces, and I'm fairly sure this problem was fixed in src/sys/dev/em/if_em.c v 1.37 (-CURRENT) / 1.2.2.18 (4-STABLE). http://www.freebsd.org/cgi/query-pr.cgi?pr=47648 From: dpk To: "Simon L. Nielsen" Cc: freebsd-gnats-submit@FreeBSD.org, Anton Kornev Subject: Re: kern/47648 creating alias on ethernet interface cause network to hang for 33 seconds Date: Fri, 4 Jun 2004 15:33:43 -0700 (PDT) On Sat, 22 May 2004, Simon L. Nielsen wrote: > Could you please try 4.10 (either a RC or the RELEASE when it comes out > shortly) since this problem should be fixed in 4-STABLE > (src/sys/dev/em/if_em.c v 1.2.2.18) now. I apologize for the delay in response. I pulled the two lines that seemed most relevant from that source and put it into 4.9 and it worked (the lines being: adapter->hw.phy_reset_disable = TRUE; at the end of em_init() and: adapter->hw.phy_reset_disable = FALSE; just before the end of em_media_change(). Thanks! >Unformatted: