From owner-svn-src-user@FreeBSD.ORG Tue Nov 4 06:29:16 2008 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18EEA1065676; Tue, 4 Nov 2008 06:29:16 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 07E9A8FC24; Tue, 4 Nov 2008 06:29:16 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mA46TFUZ088470; Tue, 4 Nov 2008 06:29:15 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mA46TF6u088469; Tue, 4 Nov 2008 06:29:15 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200811040629.mA46TF6u088469@svn.freebsd.org> From: Kip Macy Date: Tue, 4 Nov 2008 06:29:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184618 - user/kmacy/HEAD_multi_tx/sys/net X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 06:29:16 -0000 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