| 1439 | } |
| 1440 | |
| 1441 | int |
| 1442 | rte_flow_get_restore_info(uint16_t port_id, |
| 1443 | struct rte_mbuf *m, |
| 1444 | struct rte_flow_restore_info *restore_info, |
| 1445 | struct rte_flow_error *error) |
| 1446 | { |
| 1447 | struct rte_eth_dev *dev = &rte_eth_devices[port_id]; |
| 1448 | const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error); |
| 1449 | int ret; |
| 1450 | |
| 1451 | if (unlikely(!ops)) |
| 1452 | return -rte_errno; |
| 1453 | if (likely(!!ops->get_restore_info)) { |
| 1454 | ret = flow_err(port_id, |
| 1455 | ops->get_restore_info(dev, m, restore_info, |
| 1456 | error), |
| 1457 | error); |
| 1458 | |
| 1459 | rte_flow_trace_get_restore_info(port_id, m, restore_info, ret); |
| 1460 | |
| 1461 | return ret; |
| 1462 | } |
| 1463 | return rte_flow_error_set(error, ENOTSUP, |
| 1464 | RTE_FLOW_ERROR_TYPE_UNSPECIFIED, |
| 1465 | NULL, rte_strerror(ENOTSUP)); |
| 1466 | } |
| 1467 | |
| 1468 | static struct { |
| 1469 | const struct rte_mbuf_dynflag desc; |
no test coverage detected