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

Function nfp_flow_query

dpdk/drivers/net/nfp/nfp_flow.c:4207–4231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4205}
4206
4207static int
4208nfp_flow_query(struct rte_eth_dev *dev,
4209 struct rte_flow *nfp_flow,
4210 const struct rte_flow_action *actions,
4211 void *data,
4212 struct rte_flow_error *error)
4213{
4214 const struct rte_flow_action *action;
4215
4216 for (action = actions; action->type != RTE_FLOW_ACTION_TYPE_END; ++action) {
4217 switch (action->type) {
4218 case RTE_FLOW_ACTION_TYPE_VOID:
4219 break;
4220 case RTE_FLOW_ACTION_TYPE_COUNT:
4221 nfp_flow_stats_get(dev, nfp_flow, data);
4222 break;
4223 default:
4224 rte_flow_error_set(error, ENOTSUP, RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
4225 NULL, "Unsupported action type for flow query.");
4226 return -ENOTSUP;
4227 }
4228 }
4229
4230 return 0;
4231}
4232
4233static int
4234nfp_flow_tunnel_match(__rte_unused struct rte_eth_dev *dev,

Callers

nothing calls this directly

Calls 2

nfp_flow_stats_getFunction · 0.85
rte_flow_error_setFunction · 0.85

Tested by

no test coverage detected