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

Function get_val_by_p

dpdk/lib/fib/trie.c:243–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243static inline uint64_t
244get_val_by_p(void *p, uint8_t nh_sz)
245{
246 uint64_t val = 0;
247
248 switch (nh_sz) {
249 case RTE_FIB6_TRIE_2B:
250 val = *(uint16_t *)p;
251 break;
252 case RTE_FIB6_TRIE_4B:
253 val = *(uint32_t *)p;
254 break;
255 case RTE_FIB6_TRIE_8B:
256 val = *(uint64_t *)p;
257 break;
258 }
259 return val;
260}
261
262/*
263 * recursively recycle tbl8's

Callers 2

recycle_root_pathFunction · 0.85
write_edgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected