| 319 | } |
| 320 | |
| 321 | static int |
| 322 | flow_err(uint16_t port_id, int ret, struct rte_flow_error *error) |
| 323 | { |
| 324 | if (ret == 0) |
| 325 | return 0; |
| 326 | if (rte_eth_dev_is_removed(port_id)) |
| 327 | return rte_flow_error_set(error, EIO, |
| 328 | RTE_FLOW_ERROR_TYPE_UNSPECIFIED, |
| 329 | NULL, rte_strerror(EIO)); |
| 330 | return ret; |
| 331 | } |
| 332 | |
| 333 | /* Get generic flow operations structure from a port. */ |
| 334 | const struct rte_flow_ops * |
no test coverage detected