Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Feb 2014 07:57:02 +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: r261911 - head/sys/net
Message-ID:  <201402150757.s1F7v2Op088397@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sat Feb 15 07:57:01 2014
New Revision: 261911
URL: http://svnweb.freebsd.org/changeset/base/261911

Log:
  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.

Modified:
  head/sys/net/flowtable.c

Modified: head/sys/net/flowtable.c
==============================================================================
--- head/sys/net/flowtable.c	Sat Feb 15 07:01:45 2014	(r261910)
+++ head/sys/net/flowtable.c	Sat Feb 15 07:57:01 2014	(r261911)
@@ -1002,7 +1002,7 @@ flowtable_lookup_common(struct flowtable
 	}
 
 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;
 	}



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