| 134 | } |
| 135 | |
| 136 | static int |
| 137 | rte_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 | |
| 155 | RTE_ACL_RULE_DEF(rte_pipeline_acl_rule, RTE_ACL_MAX_FIELDS); |
| 156 |
nothing calls this directly
no test coverage detected