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

Function rss_hash

freebsd/net/rss_config.c:284–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284uint32_t
285rss_hash(u_int datalen, const uint8_t *data)
286{
287
288 switch (rss_hashalgo) {
289 case RSS_HASH_TOEPLITZ:
290 return (toeplitz_hash(sizeof(rss_key), rss_key, datalen,
291 data));
292
293 case RSS_HASH_NAIVE:
294 return (rss_naive_hash(sizeof(rss_key), rss_key, datalen,
295 data));
296
297 default:
298 panic("%s: unsupported/unknown hashalgo %d", __func__,
299 rss_hashalgo);
300 }
301}
302
303/*
304 * Query the number of RSS bits in use.

Callers 4

rss_hash_ip4_2tupleFunction · 0.85
rss_hash_ip4_4tupleFunction · 0.85
rss_hash_ip6_2tupleFunction · 0.85
rss_hash_ip6_4tupleFunction · 0.85

Calls 3

rss_naive_hashFunction · 0.85
toeplitz_hashFunction · 0.70
panicFunction · 0.50

Tested by

no test coverage detected