| 1333 | } |
| 1334 | |
| 1335 | int |
| 1336 | rte_flow_action_handle_update(uint16_t port_id, |
| 1337 | struct rte_flow_action_handle *handle, |
| 1338 | const void *update, |
| 1339 | struct rte_flow_error *error) |
| 1340 | { |
| 1341 | int ret; |
| 1342 | const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error); |
| 1343 | |
| 1344 | if (unlikely(!ops)) |
| 1345 | return -rte_errno; |
| 1346 | if (unlikely(!ops->action_handle_update)) |
| 1347 | return rte_flow_error_set(error, ENOSYS, |
| 1348 | RTE_FLOW_ERROR_TYPE_UNSPECIFIED, |
| 1349 | NULL, rte_strerror(ENOSYS)); |
| 1350 | ret = ops->action_handle_update(&rte_eth_devices[port_id], handle, |
| 1351 | update, error); |
| 1352 | ret = flow_err(port_id, ret, error); |
| 1353 | |
| 1354 | rte_flow_trace_action_handle_update(port_id, handle, update, ret); |
| 1355 | |
| 1356 | return ret; |
| 1357 | } |
| 1358 | |
| 1359 | int |
| 1360 | rte_flow_action_handle_query(uint16_t port_id, |
no test coverage detected