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

Function tid_free

dpdk/drivers/net/cxgbe/cxgbe_main.c:465–477  ·  view source on GitHub ↗

* Free TID tables. */

Source from the content-addressed store, hash-verified

463 * Free TID tables.
464 */
465static void tid_free(struct tid_info *t)
466{
467 if (t->tid_tab) {
468 rte_bitmap_free(t->ftid_bmap);
469
470 if (t->ftid_bmap_array)
471 t4_os_free(t->ftid_bmap_array);
472
473 t4_os_free(t->tid_tab);
474 }
475
476 memset(t, 0, sizeof(struct tid_info));
477}
478
479/**
480 * Allocate and initialize the TID tables. Returns 0 on success.

Callers 2

tid_initFunction · 0.70
cxgbe_closeFunction · 0.70

Calls 2

rte_bitmap_freeFunction · 0.85
memsetFunction · 0.85

Tested by

no test coverage detected