[BACK]Return to ixgbe.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / pci / ixgbe

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/pci/ixgbe/ixgbe.c between version 1.191 and 1.192

version 1.191, 2019/07/02 08:38:48 version 1.192, 2019/07/04 09:02:24
Line 6137  ixgbe_ifflags_cb(struct ethercom *ec)
Line 6137  ixgbe_ifflags_cb(struct ethercom *ec)
 {  {
         struct ifnet *ifp = &ec->ec_if;          struct ifnet *ifp = &ec->ec_if;
         struct adapter *adapter = ifp->if_softc;          struct adapter *adapter = ifp->if_softc;
         int change, rc = 0;          int change, rv = 0;
   
         IXGBE_CORE_LOCK(adapter);          IXGBE_CORE_LOCK(adapter);
   
Line 6145  ixgbe_ifflags_cb(struct ethercom *ec)
Line 6145  ixgbe_ifflags_cb(struct ethercom *ec)
         if (change != 0)          if (change != 0)
                 adapter->if_flags = ifp->if_flags;                  adapter->if_flags = ifp->if_flags;
   
         if ((change & ~(IFF_CANTCHANGE | IFF_DEBUG)) != 0)          if ((change & ~(IFF_CANTCHANGE | IFF_DEBUG)) != 0) {
                 rc = ENETRESET;                  rv = ENETRESET;
         else if ((change & IFF_PROMISC) != 0)                  goto out;
           } else if ((change & IFF_PROMISC) != 0)
                 ixgbe_set_promisc(adapter);                  ixgbe_set_promisc(adapter);
   
         /* Set up VLAN support and filter */          /* Set up VLAN support and filter */
         ixgbe_setup_vlan_hw_support(adapter);          ixgbe_setup_vlan_hw_support(adapter);
   
   out:
         IXGBE_CORE_UNLOCK(adapter);          IXGBE_CORE_UNLOCK(adapter);
   
         return rc;          return rv;
 }  }
   
 /************************************************************************  /************************************************************************

Legend:
Removed from v.1.191  
changed lines
  Added in v.1.192

CVSweb <webmaster@jp.NetBSD.org>