MCPcopy Create free account
hub / github.com/NetSys/bess / l2_hash_to_index

Function l2_hash_to_index

core/modules/l2_forward.cc:110–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static uint32_t l2_hash_to_index(uint32_t hash, uint32_t size) {
111 return hash & (size - 1);
112}
113
114static uint32_t l2_alt_index(uint32_t hash, uint32_t size_power,
115 uint32_t index) {

Callers 3

l2_findFunction · 0.85
l2_find_offsetFunction · 0.85
l2_find_slotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected