CVSROOT: /cvs Module name: src Changes by: d...@cvs.openbsd.org 2021/01/24 20:40:47
Modified files: sys/netinet : in_pcb.c in_pcb.h tcp_output.c sys/netinet6 : in6_pcb.c Log message: if stoeplitz is enabled, use it to provide a flowid for tcp packets. drivers that implement rss and multiple rings depend on the symmetric toeplitz code, and use it to generate a key that decides with rx ring a packet lands on. if the toeplitz code is enabled, this diff has the pcb and tcp layer use the toeplitz code to generate a flowid for packets they send, which in turn is used to pick a tx ring. because the nic and the stack use the same key, the tx and rx sides end up with the same hash/flowid. at the very least this means that the same rx and tx queue pair on a particular nic are used for both sides of the connection. as the stack becomes more parallel, it will also help keep both sides of the tcp connection processing in the one place.