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

From: Maxim Ignatenko <gelraen.ua_at_gmail.com>
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)
_at__at_ -4771,6 +4771,8 _at__at_
        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);
_at__at_ -4803,6 +4805,8 _at__at_
        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)
_at__at_ -4274,6 +4274,8 _at__at_
        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);
_at__at_ -4306,6 +4308,8 _at__at_
        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)
_at__at_ -4031,6 +4031,8 _at__at_
        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;
_at__at_ -4050,6 +4052,8 _at__at_
        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 --------------
Received on Tue Apr 28 2009 - 16:05:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:46 UTC