| 1310 | } |
| 1311 | |
| 1312 | int |
| 1313 | rte_flow_action_handle_destroy(uint16_t port_id, |
| 1314 | struct rte_flow_action_handle *handle, |
| 1315 | struct rte_flow_error *error) |
| 1316 | { |
| 1317 | int ret; |
| 1318 | const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error); |
| 1319 | |
| 1320 | if (unlikely(!ops)) |
| 1321 | return -rte_errno; |
| 1322 | if (unlikely(!ops->action_handle_destroy)) |
| 1323 | return rte_flow_error_set(error, ENOSYS, |
| 1324 | RTE_FLOW_ERROR_TYPE_UNSPECIFIED, |
| 1325 | NULL, rte_strerror(ENOSYS)); |
| 1326 | ret = ops->action_handle_destroy(&rte_eth_devices[port_id], |
| 1327 | handle, error); |
| 1328 | ret = flow_err(port_id, ret, error); |
| 1329 | |
| 1330 | rte_flow_trace_action_handle_destroy(port_id, handle, ret); |
| 1331 | |
| 1332 | return ret; |
| 1333 | } |
| 1334 | |
| 1335 | int |
| 1336 | rte_flow_action_handle_update(uint16_t port_id, |
no test coverage detected