MCPcopy Create free account
hub / github.com/F-Stack/f-stack / netisr_default_flow2cpu

Function netisr_default_flow2cpu

freebsd/net/netisr.c:288–293  ·  view source on GitHub ↗

* The default implementation of flow -> CPU ID mapping. * * Non-static so that protocols can use it to map their own work to specific * CPUs in a manner consistent to netisr for affinity purposes. */

Source from the content-addressed store, hash-verified

286 * CPUs in a manner consistent to netisr for affinity purposes.
287 */
288u_int
289netisr_default_flow2cpu(u_int flowid)
290{
291
292 return (nws_array[flowid % nws_count]);
293}
294
295/*
296 * Dispatch tunable and sysctl configuration.

Callers 1

netisr_select_cpuidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected