Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2008 06:29:15 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r184618 - user/kmacy/HEAD_multi_tx/sys/net
Message-ID:  <200811040629.mA46TF6u088469@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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