From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 24 05:50:18 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1028516A41F for ; Wed, 24 Aug 2005 05:50:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1B3743D45 for ; Wed, 24 Aug 2005 05:50:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j7O5oHgx060407 for ; Wed, 24 Aug 2005 05:50:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j7O5oHOv060406; Wed, 24 Aug 2005 05:50:17 GMT (envelope-from gnats) Date: Wed, 24 Aug 2005 05:50:17 GMT Message-Id: <200508240550.j7O5oHOv060406@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Evgueni V. Gavrilov" Cc: Subject: Re: kern/85239: assigning an address to ng_fec(4) iface causes panic X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Evgueni V. Gavrilov" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2005 05:50:18 -0000 The following reply was made to PR kern/85239; it has been noted by GNATS. From: "Evgueni V. Gavrilov" To: bug-followup@FreeBSD.org, Maksim Yevmenkin , Brooks Davis Cc: Subject: Re: kern/85239: assigning an address to ng_fec(4) iface causes panic Date: Wed, 24 Aug 2005 12:47:27 +0700 Thanks for response. I've applied Maksim's patch (with some modifications since 6.0-BETA3 holds ng_fec.c 1.18, not 1.20) The short response: it works finally :) But assigning an address to fec iface being down causes frezze, so I made following startup: $ cat /etc/fec0 mkpeer fec dummy fec msg fec0: add_iface "em0" msg fec0: add_iface "em1" msg fec0: set_mode_mac $ cat /etc/start_if.fec0 #!/bin/sh echo "==============================" echo "== Giga Channel startup ==" /usr/sbin/ngctl -f /etc/fec0 && echo "== fec0 node created ==" /sbin/ifconfig fec0 up && echo "== fec0 brought up ==" echo "== sleeping for 20 secs ==" echo "== (let GigaChannel up) ==" sleep 20 echo "==============================" This way ng_fec works with some minor issues at startup: after assigning an address both ports in the bundle (em0 && em1) go down, than in several seconds they do go up and down again, and finally both ports in the bundle go up :) Aug 24 12:22:01 blackbird kernel: fec0: port em0 in bundle is down Aug 24 12:22:01 blackbird kernel: fec0: port em1 in bundle is down Aug 24 12:22:03 blackbird kernel: em0: link state changed to UP Aug 24 12:22:03 blackbird kernel: em1: link state changed to UP Aug 24 12:28:15 blackbird kernel: fec0: port em0 in bundle is down Aug 24 12:28:15 blackbird kernel: fec0: port em1 in bundle is down Aug 24 12:28:15 blackbird kernel: fec0: port em0 in bundle is up Aug 24 12:28:15 blackbird kernel: fec0: port em1 in bundle is up Aug 24 12:28:16 blackbird kernel: fec0: port em0 in bundle is down Aug 24 12:28:16 blackbird kernel: fec0: port em1 in bundle is down Aug 24 12:28:18 blackbird kernel: fec0: port em0 in bundle is up Aug 24 12:28:19 blackbird kernel: fec0: port em1 in bundle is up $ ifconfig -a em0: flags=8843 mtu 1500 options=b ether 00:07:e9:05:a4:28 media: Ethernet autoselect (1000baseTX ) status: active em1: flags=8843 mtu 1500 options=b ether 00:07:e9:05:a4:28 media: Ethernet autoselect (1000baseTX ) status: active pflog0: flags=141 mtu 33208 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 fec0: flags=8843 mtu 1500 inet 172.16.0.127 netmask 0xffff0000 broadcast 172.16.255.255 ether 00:07:e9:05:a4:28 media: Ethernet none status: active # netstat -hi Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll em0 1500 00:07:e9:05:a4:28 23K 0 1.9K 0 0 em1 1500 00:07:e9:05:a4:28 2.2K 0 19K 0 0 pflog 33208 0 0 0 0 0 lo0 16384 255 0 255 0 0 lo0 16384 your-net localhost 255 - 255 - - fec0 1500 00:07:e9:05:a4:28 25K 3 21K 0 0 fec0 1500 172.16 blackbird 21K - 22K - - Uptime is 20 minutes. Thanks for you time. I think people would appreciate having this fix within RELENG_6 berfore release time :)