From owner-freebsd-stable@FreeBSD.ORG Fri Jul 7 04:05:02 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5038716A4DA for ; Fri, 7 Jul 2006 04:05:02 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92E4C43D49 for ; Fri, 7 Jul 2006 04:05:01 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by nz-out-0102.google.com with SMTP id i11so1140120nzi for ; Thu, 06 Jul 2006 21:05:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=tFmjRYp0NcW4P2WKThJINLbyM3vCtN5VWFqbGijKZx+MC7tu7VPFJXA+hQKHVrOsXnBPFMH3z0H/4+F2/6Nx3Lun7zMS/Qc6EENb7GL9KAWLKgHEnUHBNnNLC6u1rzjDfDPs1UfTbhOX/6yngpeFdhL3e3gN+pOaZn1sKp1s1+8= Received: by 10.36.105.17 with SMTP id d17mr1920527nzc; Thu, 06 Jul 2006 21:05:00 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 20sm10867752nzp.2006.07.06.21.04.58; Thu, 06 Jul 2006 21:05:00 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id k6748iCF084317 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 7 Jul 2006 13:08:44 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k6748dLv084316; Fri, 7 Jul 2006 13:08:39 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Fri, 7 Jul 2006 13:08:38 +0900 From: Pyun YongHyeon To: Atanas Message-ID: <20060707040838.GE82406@cdnetworks.co.kr> References: <20060629083130.X1229@ganymede.hub.org> <44A4A02A.9060802@thebeastie.org> <20060630012615.Q1103@ganymede.hub.org> <44A57B71.6020201@asd.aplus.net> <20060701035416.GC54876@cdnetworks.co.kr> <44AC6793.2070608@asd.aplus.net> <20060706021444.GA76865@cdnetworks.co.kr> <44AD7297.7080605@asd.aplus.net> <20060707010341.GD82406@cdnetworks.co.kr> <44ADC2ED.4070904@asd.aplus.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44ADC2ED.4070904@asd.aplus.net> User-Agent: Mutt/1.4.2.1i Cc: Peter Jeremy , freebsd-stable@freebsd.org, Michael Vince , User Freebsd Subject: Re: em device hangs on ifconfig alias ... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 04:05:02 -0000 On Thu, Jul 06, 2006 at 07:11:57PM -0700, Atanas wrote: > Pyun YongHyeon said the following on 7/6/06 6:03 PM: > > > >Hmm, that's strange. I've double checked that stock em(4) didn't > >generate ARP packets when its addresses were changed. So I made > >em(4) generate ARP. Could you see a gratuitous ARP with tcpdump > >when you change its address? > > > I just left a "tcpdump -n arp host 10.10.64.40" on a third machine > sniffing around and tested all em module versions I had (the stock 6.1, > 6-STABLE and 6-STABLE with your patch), but got silence on all three: > That's odd. I've tested it on CURRENT and I could see the ARP packet. Are you sure you patched correctly? If so I have to build a RELENG_6 machine and give it try. > EM# ifconfig em1 inet alias 10.10.64.40 > > EM# ifconfig em1 inet -alias 10.10.64.40 > > It's normal. > The fxp driver appears to send something on startup and nothing on > shutdown: > > FXP# ifconfig fxp0 inet alias 10.10.64.40 > 18:41:54.584059 arp who-has 10.10.64.40 tell 10.10.64.40 > FXP# ifconfig fxp0 inet -alias 10.10.64.40 > > > When I manually arping the em alias after startup (i.e. simulate what > fxp does), everything works as expected: > > EM# ifconfig em1 inet alias 10.10.64.40 > > EM# arping -c1 -S10.10.64.40 10.10.64.40 > 18:46:07.808701 arp who-has 10.10.64.40 tell 10.10.64.40 Because arping requested it em(4) generated it. > EM# ifconfig em1 inet -alias 10.10.64.40 > > > It appears that this is what the em driver is supposed to do, or at > least fxp does it in this way. > No, it's an em(4) driver bug. fxp(4)'s behavior is correct. > >This is other issue. em(4) performs two time-consuming operations > >in its initialization routine. One is DMA tag/map creation and the > >other is checksumming EEPROM contents in init routine. > >I have an experimental patch for it but let's fix one at a time. > > > OK, let's put that aside for now. > > Regards, > Atanas > -- Regards, Pyun YongHyeon