MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_flow_get_restore_info

Function rte_flow_get_restore_info

dpdk/lib/ethdev/rte_flow.c:1441–1466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1439}
1440
1441int
1442rte_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
1468static struct {
1469 const struct rte_mbuf_dynflag desc;

Callers 1

dump_pkt_burstFunction · 0.85

Calls 4

rte_flow_ops_getFunction · 0.85
flow_errFunction · 0.85
rte_flow_error_setFunction · 0.85
rte_strerrorFunction · 0.85

Tested by

no test coverage detected