svn commit: r184618 - user/kmacy/HEAD_multi_tx/sys/net

Kip Macy kmacy at FreeBSD.org
Mon Nov 3 22:29:16 PST 2008


Author: kmacy
Date: Tue Nov  4 06:29:15 2008
New Revision: 184618
URL: http://svn.freebsd.org/changeset/base/184618

Log:
  set rss_hash in mbuf if it isn't set

Modified:
  user/kmacy/HEAD_multi_tx/sys/net/flowtable.c

Modified: user/kmacy/HEAD_multi_tx/sys/net/flowtable.c
==============================================================================
--- user/kmacy/HEAD_multi_tx/sys/net/flowtable.c	Tue Nov  4 06:27:48 2008	(r184617)
+++ user/kmacy/HEAD_multi_tx/sys/net/flowtable.c	Tue Nov  4 06:29:15 2008	(r184618)
@@ -600,7 +600,8 @@ flowtable_lookup(struct flowtable *ft, s
 	hash = ipv4_flow_lookup_hash_internal(m, &ro, key,
 	    &flags, &proto);
 
-	
+	if (m->m_pkthdr.rss_hash == 0)
+		m->m_pkthdr.rss_hash = hash;
 	/*
 	 * Ports are zero and this isn't a transmit cache
 	 * - thus not a protocol for which we need to keep 
@@ -611,7 +612,6 @@ flowtable_lookup(struct flowtable *ft, s
 		cache = 0;
 		goto uncached;
 	}
-
 	FL_ENTRY_LOCK(ft, hash);
 	fle = FL_ENTRY(ft, hash);
 	if (fle->f_fhash == hash


More information about the svn-src-user mailing list