From owner-freebsd-net@FreeBSD.ORG Thu Jun 12 17:02:39 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 97B3D843 for ; Thu, 12 Jun 2014 17:02:39 +0000 (UTC) Received: from mail-ob0-x235.google.com (mail-ob0-x235.google.com [IPv6:2607:f8b0:4003:c01::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6181E21FA for ; Thu, 12 Jun 2014 17:02:39 +0000 (UTC) Received: by mail-ob0-f181.google.com with SMTP id wp4so1650638obc.12 for ; Thu, 12 Jun 2014 10:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vBrpSjUkhYJyzaHv/iO6ASDCnO94Mkf8X41UICU2DFw=; b=sZRdBzRAuYG2O56S7xl4oNN2lhDUUNiWPz0+iZJZuAge8HhVIVrokKzxLNFBdNu14M jylBxAXaI84HlAV7jdMoeJieptjLAt1FqisgxR3w8kIc+6R2dt8pSB/X+HgbfcrSuXn3 8gZPZlk1+5rlmCfoX4Xjbkbf62EbZL3bq56Jd0FwKRicmeOHBAs2Ki1RCOmxy61CYpBw nEmAFmOLtpJA6P+dMpP7ZKSGaaRSdzdWdi3Sg0yBghuFgGRc33d0u28Tv24onWdmZ+9m 9wRRiB05TjswuXCUCzhcJzyFBRly+BZqXaqVAFSNieBcfIUEn8DjBh42yobNbWsSkILq MZXw== MIME-Version: 1.0 X-Received: by 10.182.20.105 with SMTP id m9mr46568246obe.36.1402592558772; Thu, 12 Jun 2014 10:02:38 -0700 (PDT) Received: by 10.76.170.39 with HTTP; Thu, 12 Jun 2014 10:02:38 -0700 (PDT) In-Reply-To: <5399D141.1020600@gmail.com> References: <5399D141.1020600@gmail.com> Date: Thu, 12 Jun 2014 19:02:38 +0200 Message-ID: Subject: Re: em driver: netif hangs the system if interface is cabled and configured but there is no link From: Andreas Nilsson To: John Jasem Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2014 17:02:39 -0000 On Thu, Jun 12, 2014 at 6:11 PM, John Jasem wrote: > I'm configuring a system that's destined to be a multi-homed server, > using Intel dual port 1GbE cards that rely on the em driver. > > em0 has link, and only needed configuration. > > In an attempt to be ahead of the game, I pre-configured em2, plugged in > my side of the cable to be ready when the other side plugged theirs in, > and rebooted the box. > > In this state, it appears the box will hang as netif works through > interfaces defined in rc.conf. I'm not sure if permanently, but I'm > willing to call 20 minutes 'permanent' for the purposes of this exercise. > > I eventually was able to narrow it down to the configurations for em2, > and em2 not having link WHILE a cable was plugged in. I was able to > replicate the expected condition by unplugging the cable, and was able > to replicate the failure condition on em1 and em3 by moving the cable > and configurations. > > Any thoughts? Am I missing something? > > -- John Jasen (jjasen@gmail.com) > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > If it is a dual port card, shouldn't it be em0 and em1 ? Best regards Andreas