svn commit: r192935 - projects/pnet/sys/net
Robert Watson
rwatson at FreeBSD.org
Wed May 27 22:15:55 UTC 2009
Author: rwatson
Date: Wed May 27 22:15:54 2009
New Revision: 192935
URL: http://svn.freebsd.org/changeset/base/192935
Log:
Two netisr2 bug fixes for non-contiguous CPU IDs when using the
NETISR_POLICY_SOURCE policy.
Modified:
projects/pnet/sys/net/netisr2.c
Modified: projects/pnet/sys/net/netisr2.c
==============================================================================
--- projects/pnet/sys/net/netisr2.c Wed May 27 22:02:54 2009 (r192934)
+++ projects/pnet/sys/net/netisr2.c Wed May 27 22:15:54 2009 (r192935)
@@ -622,9 +622,10 @@ netisr2_selectcpu(struct netisr_proto *n
case NETISR_POLICY_SOURCE:
ifp = m->m_pkthdr.rcvif;
if (ifp != NULL)
- *cpuidp = (ifp->if_index + source) % nws_count;
+ *cpuidp = nws_array[(ifp->if_index + source) %
+ nws_count];
else
- *cpuidp = source % nws_count;
+ *cpuidp = nws_array[source % nws_count];
return (m);
default:
More information about the svn-src-projects
mailing list