Author: sbruno
Date: Wed Jul 20 22:28:26 2016
New Revision: 303116
URL: https://svnweb.freebsd.org/changeset/base/303116

Log:
  Fix em(4) build after r303107
  
  Reported by:  Jason Wolf <j...@nitrology.com>

Modified:
  stable/10/sys/dev/e1000/if_em.c

Modified: stable/10/sys/dev/e1000/if_em.c
==============================================================================
--- stable/10/sys/dev/e1000/if_em.c     Wed Jul 20 22:05:44 2016        
(r303115)
+++ stable/10/sys/dev/e1000/if_em.c     Wed Jul 20 22:28:26 2016        
(r303116)
@@ -1220,7 +1220,7 @@ em_ioctl(struct ifnet *ifp, u_long comma
                ifp->if_mtu = ifr->ifr_mtu;
                adapter->hw.mac.max_frame_size =
                    ifp->if_mtu + ETHER_HDR_LEN + ETHER_CRC_LEN;
-               if (if_getdrvflags(ifp) & IFF_DRV_RUNNING)
+               if (ifp->if_drv_flags & IFF_DRV_RUNNING)
                        em_init_locked(adapter);
                EM_CORE_UNLOCK(adapter);
                break;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to