| 1283 | } |
| 1284 | |
| 1285 | struct rte_flow_action_handle * |
| 1286 | rte_flow_action_handle_create(uint16_t port_id, |
| 1287 | const struct rte_flow_indir_action_conf *conf, |
| 1288 | const struct rte_flow_action *action, |
| 1289 | struct rte_flow_error *error) |
| 1290 | { |
| 1291 | struct rte_flow_action_handle *handle; |
| 1292 | const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error); |
| 1293 | |
| 1294 | if (unlikely(!ops)) |
| 1295 | return NULL; |
| 1296 | if (unlikely(!ops->action_handle_create)) { |
| 1297 | rte_flow_error_set(error, ENOSYS, |
| 1298 | RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL, |
| 1299 | rte_strerror(ENOSYS)); |
| 1300 | return NULL; |
| 1301 | } |
| 1302 | handle = ops->action_handle_create(&rte_eth_devices[port_id], |
| 1303 | conf, action, error); |
| 1304 | if (handle == NULL) |
| 1305 | flow_err(port_id, -rte_errno, error); |
| 1306 | |
| 1307 | rte_flow_trace_action_handle_create(port_id, conf, action, handle); |
| 1308 | |
| 1309 | return handle; |
| 1310 | } |
| 1311 | |
| 1312 | int |
| 1313 | rte_flow_action_handle_destroy(uint16_t port_id, |
no test coverage detected