Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: networking: mention that RSS table should be 4x the queue count

Spell out the recommendation that the RSS table should be
4x the queue count to avoid traffic imbalance. Include minor
rephrasing and removal of the explicit 128 entry example
since a 128 entry table is inadequate on modern machines.

Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260131225454.1225151-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+8 -4
+8 -4
Documentation/networking/scaling.rst
··· 38 38 The filter used in RSS is typically a hash function over the network 39 39 and/or transport layer headers-- for example, a 4-tuple hash over 40 40 IP addresses and TCP ports of a packet. The most common hardware 41 - implementation of RSS uses a 128-entry indirection table where each entry 41 + implementation of RSS uses an indirection table where each entry 42 42 stores a queue number. The receive queue for a packet is determined 43 - by masking out the low order seven bits of the computed hash for the 44 - packet (usually a Toeplitz hash), taking this number as a key into the 45 - indirection table and reading the corresponding value. 43 + by indexing the indirection table with the low order bits of the 44 + computed hash for the packet (usually a Toeplitz hash). 45 + 46 + The indirection table helps even out the traffic distribution when queue 47 + count is not a power of two. NICs should provide an indirection table 48 + at least 4 times larger than the queue count. 4x table results in ~16% 49 + imbalance between the queues, which is acceptable for most applications. 46 50 47 51 Some NICs support symmetric RSS hashing where, if the IP (source address, 48 52 destination address) and TCP/UDP (source port, destination port) tuples