| 4205 | } |
| 4206 | |
| 4207 | static int |
| 4208 | nfp_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 | |
| 4233 | static int |
| 4234 | nfp_flow_tunnel_match(__rte_unused struct rte_eth_dev *dev, |
nothing calls this directly
no test coverage detected