kern/132715: [lagg] [panic] Panic when creating vlan's on lagg interface

Maxim Ignatenko gelraen.ua at gmail.com
Tue Apr 28 18:10:09 UTC 2009


The following reply was made to PR kern/132715; it has been noted by GNATS.

From: Maxim Ignatenko <gelraen.ua at gmail.com>
To: bug-followup at freebsd.org, gdef at wp.pl
Cc: freebsd-current at 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 --------------


More information about the freebsd-net mailing list