Page MenuHomeFreeBSD

aq(4): clean up diagnostics and remove dead code
ClosedPublic

Authored by nick_spun.io on Jul 24 2026, 3:38 PM.
Tags
None
Referenced Files
F168232609: D58436.id182906.diff
Thu, Aug 27, 2:09 AM
F168232095: D58436.id182906.diff
Thu, Aug 27, 2:05 AM
F168225289: D58436.id182753.diff
Thu, Aug 27, 1:00 AM
Unknown Object (File)
Tue, Aug 25, 8:05 PM
Unknown Object (File)
Tue, Aug 25, 8:01 PM
Unknown Object (File)
Tue, Aug 25, 7:06 PM
Unknown Object (File)
Tue, Aug 25, 7:02 PM
Unknown Object (File)
Tue, Aug 25, 2:23 AM
Subscribers

Details

Summary

Non-functional cleanup, no change in behavior.

device_printf() already prefixes each line with the device name, so the
inline "atlantic:" token in the status and error messages produced a
doubled prefix and diverged from the trace macros; remove it so all
output carries one uniform "aqN:" prefix. Compile the RX/TX descriptor
tracers only when AQ_CFG_DEBUG_LVL > 2 and make them no-op macros
otherwise, so the default build no longer pays a cross-TU call plus
argument evaluation per descriptor.

Drop enum aq_dev_state, struct aq_rx_filters, and struct aq_vlan_tag,
which have no remaining references now that VLAN state lives in a
bitstr_t. Replace the four identical aq_sysctl_print_{tx,rx}_{head,tail}
handlers, each carrying a dead write path on a read-only oid, with one
aq_sysctl_print_ring_ptr that selects the accessor from arg2. Reduce the
thermal and PHY-recovery comments to single terse lines that keep the
load-bearing register numbers and the A1-vs-A2 recovery difference.

Signed-off-by: Nick Price <nick@spun.io>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Self-review pass: no functional change to this commit. Commit message
amended to carry the Differential Revision reference.

Rebased onto the updated parent; this commit's content is unchanged.

Refreshed after the comment-cleanup rebase of the series.

This revision is now accepted and ready to land.Sun, Aug 2, 3:55 PM
This revision was automatically updated to reflect the committed changes.