[Bug 225312] panic: Assertion if_getdrvflags(ifp) == i failed at /usr/src/sys/net/iflib.c:2201

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 19 21:32:22 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225312

Eric Joyner <erj at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |erj at freebsd.org

--- Comment #2 from Eric Joyner <erj at freebsd.org> ---
Looking at iflib.c, it appears iflib_init_locked() expects the driver-specific
init function to not set any driver flags, but ixv_if_init() in if_ixv.c (the
function called as IFDI_INIT() in iflib_init_locked()) modifies those flags,
which I think causes the MPASS() to fail.

So, I think this last bit in ixv_if_init() needs to be removed:

        /* Now inform the stack we're ready */
        ifp->if_drv_flags |= IFF_DRV_RUNNING;
        ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list