From owner-freebsd-net@FreeBSD.ORG Tue Apr 28 18:10:07 2009 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 128CC106567D for ; Tue, 28 Apr 2009 18:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DD45D8FC20 for ; Tue, 28 Apr 2009 18:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3SIA6XG048082 for ; Tue, 28 Apr 2009 18:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3SIA6hb048081; Tue, 28 Apr 2009 18:10:06 GMT (envelope-from gnats) Date: Tue, 28 Apr 2009 18:10:06 GMT Message-Id: <200904281810.n3SIA6hb048081@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Maxim Ignatenko Cc: Subject: Re: kern/132715: [lagg] [panic] Panic when creating vlan's on lagg interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maxim Ignatenko List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2009 18:10:09 -0000 The following reply was made to PR kern/132715; it has been noted by GNATS. From: Maxim Ignatenko To: bug-followup@freebsd.org, gdef@wp.pl Cc: freebsd-current@freebsd.org Subject: Re: kern/132715: [lagg] [panic] Panic when creating vlan's on lagg interface Date: Tue, 28 Apr 2009 21:05:34 +0300 GMail sent attach in very strange way, so it does not displayed correctly on website. -------------- cut here -------------- Index: sys/dev/e1000/if_em.c =================================================================== --- sys/dev/e1000/if_em.c (revision 191201) +++ sys/dev/e1000/if_em.c (working copy) @@ -4771,6 +4771,8 @@ struct adapter *adapter = ifp->if_softc; u32 ctrl, rctl, index, vfta; + if (strcmp("em",ifp->if_dname)) return; + ctrl = E1000_READ_REG(&adapter->hw, E1000_CTRL); ctrl |= E1000_CTRL_VME; E1000_WRITE_REG(&adapter->hw, E1000_CTRL, ctrl); @@ -4803,6 +4805,8 @@ struct adapter *adapter = ifp->if_softc; u32 index, vfta; + if (strcmp("em",ifp->if_dname)) return; + /* Remove entry in the hardware filter table */ index = ((vtag >> 5) & 0x7F); vfta = E1000_READ_REG_ARRAY(&adapter->hw, E1000_VFTA, index); Index: sys/dev/e1000/if_igb.c =================================================================== --- sys/dev/e1000/if_igb.c (revision 191201) +++ sys/dev/e1000/if_igb.c (working copy) @@ -4274,6 +4274,8 @@ struct adapter *adapter = ifp->if_softc; u32 ctrl, rctl, index, vfta; + if (strcmp("igb",ifp->if_dname)) return; + ctrl = E1000_READ_REG(&adapter->hw, E1000_CTRL); ctrl |= E1000_CTRL_VME; E1000_WRITE_REG(&adapter->hw, E1000_CTRL, ctrl); @@ -4306,6 +4308,8 @@ struct adapter *adapter = ifp->if_softc; u32 index, vfta; + if (strcmp("igb",ifp->if_dname)) return; + /* Remove entry in the hardware filter table */ index = ((vtag >> 5) & 0x7F); vfta = E1000_READ_REG_ARRAY(&adapter->hw, E1000_VFTA, index); Index: sys/dev/ixgbe/ixgbe.c =================================================================== --- sys/dev/ixgbe/ixgbe.c (revision 191201) +++ sys/dev/ixgbe/ixgbe.c (working copy) @@ -4031,6 +4031,8 @@ struct adapter *adapter = ifp->if_softc; u32 ctrl, rctl, index, vfta; + if (strcmp("ixgbe",ifp->if_dname)) return; + ctrl = IXGBE_READ_REG(&adapter->hw, IXGBE_VLNCTRL); ctrl |= IXGBE_VLNCTRL_VME | IXGBE_VLNCTRL_VFE; ctrl &= ~IXGBE_VLNCTRL_CFIEN; @@ -4050,6 +4052,8 @@ struct adapter *adapter = ifp->if_softc; u32 index, vfta; + if (strcmp("ixgbe",ifp->if_dname)) return; + /* Remove entry in the hardware filter table */ ixgbe_set_vfta(&adapter->hw, vtag, 0, FALSE); -------------- cut here --------------