| 2425 | } |
| 2426 | |
| 2427 | static struct rte_flow * |
| 2428 | sfc_flow_zmalloc(struct rte_flow_error *error) |
| 2429 | { |
| 2430 | struct rte_flow *flow; |
| 2431 | |
| 2432 | flow = rte_zmalloc("sfc_rte_flow", sizeof(*flow), 0); |
| 2433 | if (flow == NULL) { |
| 2434 | rte_flow_error_set(error, ENOMEM, |
| 2435 | RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL, |
| 2436 | "Failed to allocate memory"); |
| 2437 | } |
| 2438 | |
| 2439 | return flow; |
| 2440 | } |
| 2441 | |
| 2442 | static void |
| 2443 | sfc_flow_free(struct sfc_adapter *sa, struct rte_flow *flow) |
no test coverage detected