summaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2021-01-25 03:40:48 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2021-01-25 03:40:48 +0000
commita8cba88b182fb9442c86999c100950727ed8071e (patch)
tree5a3995d69d8999cf01277d5a291891eef0c1f545 /sys/netinet/in_pcb.h
parent0b9e212cd27d66ee4fb81b17f11a54dc08234ba7 (diff)
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.
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 4c7ae3fd18f..2f87c820f7f 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.h,v 1.120 2020/06/21 05:14:04 dlg Exp $ */
+/* $OpenBSD: in_pcb.h,v 1.121 2021/01/25 03:40:46 dlg Exp $ */
/* $NetBSD: in_pcb.h,v 1.14 1996/02/13 23:42:00 christos Exp $ */
/*
@@ -148,6 +148,7 @@ struct inpcb {
void *inp_upcall_arg;
u_int inp_rtableid;
int inp_pipex; /* pipex indication */
+ uint16_t inp_flowid;
};
LIST_HEAD(inpcbhead, inpcb);