Author: erj
Date: Mon Jan 22 20:56:21 2018
New Revision: 328265
URL: https://svnweb.freebsd.org/changeset/base/328265

Log:
  ixv(4): Stop setting editing ifnet flags in ixv_if_init()
  
  In iflib, the device-specific init() function isn't supposed to edit
  the struct ifnet driver flags. If it does, it'll cause an MPASS() assert
  in iflib to fail.
  
  PR:           225312
  Reported by:  bhughes@

Modified:
  head/sys/dev/ixgbe/if_ixv.c

Modified: head/sys/dev/ixgbe/if_ixv.c
==============================================================================
--- head/sys/dev/ixgbe/if_ixv.c Mon Jan 22 20:49:17 2018        (r328264)
+++ head/sys/dev/ixgbe/if_ixv.c Mon Jan 22 20:56:21 2018        (r328265)
@@ -662,10 +662,6 @@ ixv_if_init(if_ctx_t ctx)
        /* And now turn on interrupts */
        ixv_if_enable_intr(ctx);
 
-       /* Now inform the stack we're ready */
-       ifp->if_drv_flags |= IFF_DRV_RUNNING;
-       ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
-
        return;
 } /* ixv_if_init */
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to