aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2025-12-03 23:15:45 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2025-12-03 23:19:44 +0000
commitee18f8be21655c2d98c1c1bd4e081c366fa91c9a (patch)
tree820b78b14c5fed2bffa443b46a40312b75a0be6f
parent73fe85e486d297c9c976095854c1c84007e543f0 (diff)
tcp: don't set flowid in tcp_input()
With dd0e6bb996dc setting it always on connect(2) and syncache always picking up the flowid from the incoming packet, any ESTABLISHED connection shall have the flowid already set. Reviewed by: tuexen, gallatin Differential Revision: https://reviews.freebsd.org/D53886
-rw-r--r--sys/netinet/tcp_input.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 9014dd690764..0036a07384ae 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -923,37 +923,6 @@ findpcb:
}
INP_LOCK_ASSERT(inp);
- if ((inp->inp_flowtype == M_HASHTYPE_NONE) &&
- !SOLISTENING(inp->inp_socket)) {
- if (M_HASHTYPE_GET(m) != M_HASHTYPE_NONE) {
- inp->inp_flowid = m->m_pkthdr.flowid;
- inp->inp_flowtype = M_HASHTYPE_GET(m);
-#ifdef RSS
- } else {
- /* assign flowid by software RSS hash */
-#ifdef INET6
- if (isipv6) {
- rss_proto_software_hash_v6(&inp->in6p_faddr,
- &inp->in6p_laddr,
- inp->inp_fport,
- inp->inp_lport,
- IPPROTO_TCP,
- &inp->inp_flowid,
- &inp->inp_flowtype);
- } else
-#endif /* INET6 */
- {
- rss_proto_software_hash_v4(inp->inp_faddr,
- inp->inp_laddr,
- inp->inp_fport,
- inp->inp_lport,
- IPPROTO_TCP,
- &inp->inp_flowid,
- &inp->inp_flowtype);
- }
-#endif /* RSS */
- }
- }
#if defined(IPSEC) || defined(IPSEC_SUPPORT)
#ifdef INET6
if (isipv6 && IPSEC_ENABLED(ipv6) &&