Bug 226254 - ifnet(9) description for if_qflush() is incorrect
Summary: ifnet(9) description for if_qflush() is incorrect
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2018-02-27 23:12 UTC by Eric Joyner
Modified: 2018-04-11 21:26 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Eric Joyner freebsd_committer 2018-02-27 23:12:40 UTC
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.