From owner-freebsd-net@FreeBSD.ORG Tue Jun 28 21:46:35 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A880C106566C for ; Tue, 28 Jun 2011 21:46:35 +0000 (UTC) (envelope-from jack.vogel@intel.com) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx1.freebsd.org (Postfix) with ESMTP id 849788FC14 for ; Tue, 28 Jun 2011 21:46:35 +0000 (UTC) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 28 Jun 2011 14:18:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,439,1304319600"; d="scan'208";a="23991765" Received: from orsmsx603.amr.corp.intel.com ([10.22.226.49]) by fmsmga001.fm.intel.com with ESMTP; 28 Jun 2011 14:18:14 -0700 Received: from orsmsx606.amr.corp.intel.com (10.22.226.128) by orsmsx603.amr.corp.intel.com (10.22.226.49) with Microsoft SMTP Server (TLS) id 8.2.255.0; Tue, 28 Jun 2011 14:18:14 -0700 Received: from orsmsx508.amr.corp.intel.com ([10.22.226.46]) by orsmsx606.amr.corp.intel.com ([10.22.226.128]) with mapi; Tue, 28 Jun 2011 14:18:13 -0700 From: "Vogel, Jack" To: Andrew Boyer , Igor Anishchuk Date: Tue, 28 Jun 2011 14:18:13 -0700 Thread-Topic: ixgbe> vlan addition and removal brings the interfaces down and up Thread-Index: Acw10nNPsurhzOIISHueUsBr+AwOvQABkgdg Message-ID: <1DB50624F8348F48840F2E2CF6040A9D018D603544@orsmsx508.amr.corp.intel.com> References: <8F86FFA7-E2D7-40D6-A1B5-DFCFA47EBD75@averesystems.com> <6E5D6CF9-E197-44E8-835A-ABD9F5969DBE@averesystems.com> In-Reply-To: <6E5D6CF9-E197-44E8-835A-ABD9F5969DBE@averesystems.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-net@freebsd.org" Subject: RE: ixgbe> vlan addition and removal brings the interfaces down and up X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2011 21:46:35 -0000 Hmmm, I'll have to take a look at the code, and if I hadn't done it by now = there might be some reason I couldn't, or hell, maybe I just forgot :) Wil= l let you know. Jack -----Original Message----- From: Andrew Boyer [mailto:aboyer@averesystems.com]=20 Sent: Tuesday, June 28, 2011 1:32 PM To: Igor Anishchuk; Vogel, Jack Cc: freebsd-net@freebsd.org Subject: Re: ixgbe> vlan addition and removal brings the interfaces down an= d up Hello Igor, Sorry for the delay. I'm a little hesitant to share our ixgbe patch to cha= nge this behavior because Jack has checked in changes to igb that make me t= hink that our change is not correct. Or, at least, that he's probably work= ing on fixing ixgbe the right way. Jack, are you planning to copy the reor= ganization of igb_setup_vlan_hw_support() over to ixgbe_setup_vlan_hw_suppo= rt? -Andrew On Jun 28, 2011, at 4:02 PM, Igor Anishchuk wrote: > Hi Andrew, >=20 > could you please share the patch as I'm dying with this problem. >=20 > What makes it worse is that on a busy router the DOWN/UP of the > interfaces causes the ixgbe card to lose all network access until the > box is rebooted. I can reproduce it easily on a variety of hosts from > both HP and Dell. Therefore a patch that would not cause the card to > reset would help a lot. >=20 > -- Igor >=20 > On Thu, May 19, 2011 at 8:58 PM, Andrew Boyer w= rote: >> I have a patch that will fix this. Please give me a little while to cle= an it up, and I will send it out on the list. >>=20 >> -Andrew >>=20 >> On May 19, 2011, at 2:58 AM, Igor Anishchuk wrote: >>=20 >>> Hi All, >>>=20 >>> I've been using Intel E10G42AFDA 10Gbit/s AF DA Dual Port adapters >>> with direct attach cables and there is one thing keeps bothering me. >>> I've been searching the Internet for any information with no luck. I >>> would also assume that the problem is widely known, and I found one >>> related PR kern/141285 but that one was closed unsolved. >>>=20 >>> When a VLAN interface is added or removed to from the ix interfaces >>> the parent interface is briefly brought down and up. This event is >>> visible for all applications and the switches. With my use case I add >>> and remove VLAN interfaces on the fly and the described behavior >>> causes undesired effects, especially for BGP daemons that are >>> configured to monitor one of permanent VLAN interfaces. >>>=20 >>> I use FreeBSD 7-STABLE and the behavior is the same with stock >>> drivers, with 2.2.3 and with 2.3.8 drivers downloaded from Intel web >>> site. I have attempted to disable -vlanhwtag, -vlanhwfilter and >>> -vlanhwtso with no effect. >>>=20 >>> Could someone help me to stop the cards behaving this way? I do not >>> mind some performance penalties, nor running in permanent promiscuous >>> mode. I just want the card to stay up all the time regardless of the >>> vlan interfaces attached to it. >>>=20 >>> Any help, links, patches are much appreciated. >>>=20 >>> Regards, >>>=20 >>> Igor Anishchuk >>> _______________________________________________ >>> 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" >>=20 >> -------------------------------------------------- >> Andrew Boyer aboyer@averesystems.com >>=20 >>=20 >>=20 >>=20 >>=20 -------------------------------------------------- Andrew Boyer aboyer@averesystems.com