Page MenuHomeFreeBSD

qlxge(4): Distribute RSS over num_rx_rings with a modulo
Needs ReviewPublic

Authored by nick_spun.io on May 26 2026, 5:02 PM.
Referenced Files
F175368957: D57253.id178642.diff
Sat, Oct 10, 8:35 AM
F175368952: D57253.id178638.diff
Sat, Oct 10, 8:35 AM
F175368932: D57253.id.diff
Sat, Oct 10, 8:35 AM
F175368863: D57253.diff
Sat, Oct 10, 8:34 AM
F175368713: D57253.id178645.diff
Sat, Oct 10, 8:33 AM
Unknown Object (File)
Thu, Oct 8, 9:00 PM
Unknown Object (File)
Wed, Oct 7, 4:34 PM
Unknown Object (File)
Wed, Oct 7, 10:39 AM
Subscribers

Details

Reviewers
adrian
Summary

qls_init_rss() built the RSS indirection table with rss_icb->cq_id[i] = (i & (ha->num_rx_rings - 1)); which assumes num_rx_rings is a power of two. When it is not, the AND mask leaves some completion queues with no entries and skews the hash
distribution.

MAX_RX_RINGS is currently hardcoded to 1, so this is latent today, but use a modulo so the table stays correct if the ring count is ever raised to a non-power-of-two value.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 73456
Build 70339: arc lint + arc unit