]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iflib: Better control over queue core assignment
authorshurd <shurd@FreeBSD.org>
Thu, 25 Apr 2019 21:24:56 +0000 (21:24 +0000)
committershurd <shurd@FreeBSD.org>
Thu, 25 Apr 2019 21:24:56 +0000 (21:24 +0000)
commit8826fe7913f43df1045373dbb1154e232b4fe7f5
tree0b33580b1b4016c9321f6b40dfb06bfbf7433bf0
parente67713e43e8b6dca602e3dd58e41e10cc2636424
iflib: Better control over queue core assignment

By default, cores are now assigned to queues in a sequential
manner rather than all NICs starting at the first core. On a four-core
system with two NICs each using two queue pairs, the nic:queue -> core
mapping has changed from this:

0:0 -> 0, 0:1 -> 1
1:0 -> 0, 1:1 -> 1

To this:

0:0 -> 0, 0:1 -> 1
1:0 -> 2, 1:1 -> 3

Additionally, a device can now be configured to use separate cores for TX
and RX queues.

Two new tunables have been added, dev.X.Y.iflib.separate_txrx and
dev.X.Y.iflib.core_offset. If core_offset is set, the NIC is not part
of the auto-assigned sequence.

Reviewed by: marius
MFC after: 2 weeks
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D20029
share/man/man4/iflib.4
sys/net/iflib.c