Ensure that the flowid hashtype is assigned to the inp if the flowid

is also assigned.
This commit is contained in:
Adrian Chadd 2014-05-18 22:34:06 +00:00
parent cc6c187794
commit 2f71993288
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=266420
2 changed files with 2 additions and 0 deletions

View File

@ -905,6 +905,7 @@ tcp_input(struct mbuf *m, int off0)
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

View File

@ -718,6 +718,7 @@ syncache_socket(struct syncache *sc, struct socket *lso, struct mbuf *m)
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);
}
/*