]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r362530: teach ena driver about RSS kernel option
authorAndriy Gapon <avg@FreeBSD.org>
Thu, 30 Jul 2020 13:55:05 +0000 (13:55 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Thu, 30 Jul 2020 13:55:05 +0000 (13:55 +0000)
commita877ebb76072ccca22a9b7dc5b6be57ec43d85e2
treeddc7100116c1d67b6e7c281b152548c3613b99ad
parent8463148722d6e50d00d6c7cfda875b209e204560
MFC r362530: teach ena driver about RSS kernel option

Networking is broken if the driver configures its (virtual) hardware to
use a hash algorithm (or a key) different from the one that the network
stack (software RSS) uses.  This can be seen with connections initiated
from the host.  The PCB will be placed into the hash table based on the
hash value calculated by the software.  The hardware-calculated hash
value in reponse packets will be different, so the PCB won't be found.

Tested with a kernel compiled with 'options RSS' on an instance with ena
driver.
sys/dev/ena/ena.c
sys/modules/ena/Makefile