Make sure that the flowtable flowid is only set to m_flowid if there

isn't one already supplied.

The previous flowtable code also did this.

Reviewed by:	glebius
Sponsored by:	Netflix, Inc.
This commit is contained in:
adrian 2014-02-15 07:57:01 +00:00
parent 9f80368a89
commit c11e4e28da

View File

@ -1002,7 +1002,7 @@ flowtable_lookup_common(struct flowtable *ft, struct sockaddr_storage *ssa,
}
success:
if (m->m_flags & M_FLOWID) {
if (! (m->m_flags & M_FLOWID)) {
m->m_flags |= M_FLOWID;
m->m_pkthdr.flowid = fle->f_fhash;
}