tcp: Use primary hash for TCP ports.
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 15 Sep 2017 05:20:39 +0000 (13:20 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 15 Sep 2017 05:20:39 +0000 (13:20 +0800)
commit8aaef6e5336657217fc200add6f0f43a66bddb9e
treece7a93e4ac18559a07dee3e9ea84745e87c8b536
parent778d4af7f9c44e2c3e206c1a29f14a72ede63f35
tcp: Use primary hash for TCP ports.

This fixes the hash aliasing issue, which is caused by port space
devisiion.  Improve TCP connection establish performance a bit.
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
sys/netinet/tcp_subr.c