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

Function rte_table_acl_free

dpdk/lib/table/rte_table_acl.c:136–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136static int
137rte_table_acl_free(void *table)
138{
139 struct rte_table_acl *acl = table;
140
141 /* Check input parameters */
142 if (table == NULL) {
143 RTE_LOG(ERR, TABLE, "%s: table parameter is NULL\n", __func__);
144 return -EINVAL;
145 }
146
147 /* Free previously allocated resources */
148 rte_acl_free(acl->ctx);
149
150 rte_free(acl);
151
152 return 0;
153}
154
155RTE_ACL_RULE_DEF(rte_pipeline_acl_rule, RTE_ACL_MAX_FIELDS);
156

Callers

nothing calls this directly

Calls 2

rte_acl_freeFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected