Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 May 2014 22:34:06 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266420 - head/sys/netinet
Message-ID:  <201405182234.s4IMY6If057732@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sun May 18 22:34:06 2014
New Revision: 266420
URL: http://svnweb.freebsd.org/changeset/base/266420

Log:
  Ensure that the flowid hashtype is assigned to the inp if the flowid
  is also assigned.

Modified:
  head/sys/netinet/tcp_input.c
  head/sys/netinet/tcp_syncache.c

Modified: head/sys/netinet/tcp_input.c
==============================================================================
--- head/sys/netinet/tcp_input.c	Sun May 18 22:32:04 2014	(r266419)
+++ head/sys/netinet/tcp_input.c	Sun May 18 22:34:06 2014	(r266420)
@@ -905,6 +905,7 @@ findpcb:
 		inp->inp_flags |= INP_HW_FLOWID;
 		inp->inp_flags &= ~INP_SW_FLOWID;
 		inp->inp_flowid = m->m_pkthdr.flowid;
+		inp->inp_flowtype = M_HASHTYPE_GET(m);
 	}
 #ifdef IPSEC
 #ifdef INET6

Modified: head/sys/netinet/tcp_syncache.c
==============================================================================
--- head/sys/netinet/tcp_syncache.c	Sun May 18 22:32:04 2014	(r266419)
+++ head/sys/netinet/tcp_syncache.c	Sun May 18 22:34:06 2014	(r266420)
@@ -718,6 +718,7 @@ syncache_socket(struct syncache *sc, str
 		inp->inp_flags |= INP_HW_FLOWID;
 		inp->inp_flags &= ~INP_SW_FLOWID;
 		inp->inp_flowid = m->m_pkthdr.flowid;
+		inp->inp_flowtype = M_HASHTYPE_GET(m);
 	}
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405182234.s4IMY6If057732>