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

Function rss_m2cpuid

freebsd/net/rss_config.c:398–405  ·  view source on GitHub ↗

* netisr CPU affinity lookup routine for use by protocols. */

Source from the content-addressed store, hash-verified

396 * netisr CPU affinity lookup routine for use by protocols.
397 */
398struct mbuf *
399rss_m2cpuid(struct mbuf *m, uintptr_t source, u_int *cpuid)
400{
401
402 M_ASSERTPKTHDR(m);
403 *cpuid = rss_hash2cpuid(m->m_pkthdr.flowid, M_HASHTYPE_GET(m));
404 return (m);
405}
406
407int
408rss_m2bucket(struct mbuf *m, uint32_t *bucket_id)

Callers

nothing calls this directly

Calls 1

rss_hash2cpuidFunction · 0.85

Tested by

no test coverage detected