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

Function rte_flow_dev_dump

dpdk/lib/ethdev/rte_flow.c:1212–1231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210}
1211
1212int
1213rte_flow_dev_dump(uint16_t port_id, struct rte_flow *flow,
1214 FILE *file, struct rte_flow_error *error)
1215{
1216 struct rte_eth_dev *dev = &rte_eth_devices[port_id];
1217 const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);
1218 int ret;
1219
1220 if (unlikely(!ops))
1221 return -rte_errno;
1222 if (likely(!!ops->dev_dump)) {
1223 fts_enter(dev);
1224 ret = ops->dev_dump(dev, flow, file, error);
1225 fts_exit(dev);
1226 return flow_err(port_id, ret, error);
1227 }
1228 return rte_flow_error_set(error, ENOSYS,
1229 RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
1230 NULL, rte_strerror(ENOSYS));
1231}
1232
1233int
1234rte_flow_get_aged_flows(uint16_t port_id, void **contexts,

Callers 1

port_flow_dumpFunction · 0.85

Calls 6

rte_flow_ops_getFunction · 0.85
fts_enterFunction · 0.85
fts_exitFunction · 0.85
flow_errFunction · 0.85
rte_flow_error_setFunction · 0.85
rte_strerrorFunction · 0.85

Tested by

no test coverage detected