| 451 | } |
| 452 | |
| 453 | int |
| 454 | rte_flow_actions_update(uint16_t port_id, |
| 455 | struct rte_flow *flow, |
| 456 | const struct rte_flow_action actions[], |
| 457 | struct rte_flow_error *error) |
| 458 | { |
| 459 | struct rte_eth_dev *dev = &rte_eth_devices[port_id]; |
| 460 | const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error); |
| 461 | int ret; |
| 462 | |
| 463 | if (unlikely(!ops)) |
| 464 | return -rte_errno; |
| 465 | if (likely(!!ops->actions_update)) { |
| 466 | fts_enter(dev); |
| 467 | ret = ops->actions_update(dev, flow, actions, error); |
| 468 | fts_exit(dev); |
| 469 | |
| 470 | rte_flow_trace_actions_update(port_id, flow, actions, ret); |
| 471 | |
| 472 | return flow_err(port_id, ret, error); |
| 473 | } |
| 474 | return rte_flow_error_set(error, ENOSYS, |
| 475 | RTE_FLOW_ERROR_TYPE_UNSPECIFIED, |
| 476 | NULL, rte_strerror(ENOSYS)); |
| 477 | } |
| 478 | |
| 479 | /* Destroy all flow rules associated with a port. */ |
| 480 | int |
nothing calls this directly
no test coverage detected