Page MenuHomeFreeBSD

Add ALTQ support to iflib
ClosedPublic

Authored by pkelsey on Jul 24 2018, 8:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 7, 8:38 AM
Unknown Object (File)
Dec 30 2023, 3:10 AM
Unknown Object (File)
Dec 23 2023, 6:07 PM
Unknown Object (File)
Dec 20 2023, 2:33 AM
Unknown Object (File)
Dec 11 2023, 11:53 PM
Unknown Object (File)
Nov 21 2023, 8:21 PM
Unknown Object (File)
Nov 6 2023, 5:04 PM
Unknown Object (File)
Oct 24 2023, 9:52 PM
Subscribers

Details

Summary

There are fielded products that use ALTQ, that are actively developed using near-HEAD FreeBSD sources, and that use NIC hardware whose drivers have been or are being converted to iflib, so there is a need for ALTQ support in iflib.

This patch adds such support. The implementation prioritizes having a minimum code footprint in iflib.c and zero presence when ALTQ-related kernel options are not defined. See the comment on iflib.c:iflib_altq_if_start() in the diff for further details regarding the approach taken. There is the usual limitation that when ALTQ is enabled on an interface with multiple hardware queues, only a single queue (queue 0) is used for transmit.

Test Plan

Tested with a pf config that directs TCP traffic to one of several HFSC queues with distinct bandwidth limits based on port number, with verification of expected bandwidth at the receiver.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped