HomeFreeBSD

cxgbe(4): Do not configure traffic classes automatically on attach.

Description

cxgbe(4): Do not configure traffic classes automatically on attach.

The driver used to configure all available classes with some default
parameters on attach and the rest of t4_sched.c was written with the
assumption that all traffic classes are always valid in the hardware.
But this resulted in a lot of informational messages being logged in the
firmware's circular log, crowding out other more useful messages.

This change leaves the tx scheduler alone during attach to reduce the
spam in the devlog. The state of every class is now tracked separately
from its flags and there is support for an 'uninitialized' state.

MFC after: 2 weeks
Sponsored by: Chelsio Communications

Details

Provenance
npAuthored on Jun 24 2021, 8:05 PM
Parents
rG6beb67c7e0ad: cxgbe(4): Get the number of usable traffic classes from the firmware.
Branches
Unknown
Tags
Unknown