Page MenuHomeFreeBSD

iflib: Add support for SIOCGIFDOWNREASON IOCtl
AcceptedPublic

Authored by chandrakanth.patil_broadcom.com on Dec 3 2025, 11:17 AM.
Tags
None
Referenced Files
F143421150: D54045.diff
Fri, Jan 30, 7:01 AM
Unknown Object (File)
Thu, Jan 29, 4:52 PM
Unknown Object (File)
Wed, Jan 28, 9:21 PM
Unknown Object (File)
Dec 24 2025, 1:31 AM
Unknown Object (File)
Dec 19 2025, 10:02 AM
Unknown Object (File)
Dec 18 2025, 10:26 AM
Unknown Object (File)
Dec 17 2025, 2:05 AM
Unknown Object (File)
Dec 5 2025, 9:26 PM

Details

Summary

This change adds native support for the SIOCGIFDOWNREASON ioctl in iflib.

When ifconfig issues SIOCGIFDOWNREASON, the request is now routed through a
new driver callback (IFDI_GET_DOWNREASON). iflib allocates the ifdownreason
structure, calls the driver to fill the down-reason message, and then
returns the data back to ifconfig for display.

Without this change, iflib-based drivers cannot implement link-down reason
reporting even if the hardware provides the information.

No functional change for existing drivers unless they implement the new
IFDI_GET_DOWNREASON method. Existing drivers continue to behave as before.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped