[Bug 226254] ifnet(9) description for if_qflush() is incorrect

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 27 23:12:41 UTC 2018


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

            Bug ID: 226254
           Summary: ifnet(9) description for if_qflush() is incorrect
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Documentation
          Assignee: freebsd-doc at FreeBSD.org
          Reporter: erj at freebsd.org

The manpage says this about the if_qflush function pointer:

"This function must be installed after if_attach() to
           override the default implementation.

However, looking at if_attach(), it only sets if_qflush if the function sees
that both the if_transmit and if_qflush function pointers are NULL.

There's also a KASSERT that says both fields must be set or both must be NULL,
so it isn't even possible (with asserts enabled) to set if_transmit before
if_attach() and then set if_qflush afterwards.

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


More information about the freebsd-doc mailing list