| 5738 | } |
| 5739 | |
| 5740 | int |
| 5741 | sfc_mae_flow_query(struct rte_eth_dev *dev, |
| 5742 | struct rte_flow *flow, |
| 5743 | const struct rte_flow_action *action, |
| 5744 | void *data, |
| 5745 | struct rte_flow_error *error) |
| 5746 | { |
| 5747 | struct sfc_adapter *sa = sfc_adapter_by_eth_dev(dev); |
| 5748 | struct sfc_flow_spec *spec = &flow->spec; |
| 5749 | struct sfc_flow_spec_mae *spec_mae = &spec->mae; |
| 5750 | |
| 5751 | switch (action->type) { |
| 5752 | case RTE_FLOW_ACTION_TYPE_COUNT: |
| 5753 | return sfc_mae_query_counter(sa, spec_mae, action, |
| 5754 | data, error); |
| 5755 | default: |
| 5756 | return rte_flow_error_set(error, ENOTSUP, |
| 5757 | RTE_FLOW_ERROR_TYPE_ACTION, NULL, |
| 5758 | "Query for action of this type is not supported"); |
| 5759 | } |
| 5760 | } |
| 5761 | |
| 5762 | int |
| 5763 | sfc_mae_switchdev_init(struct sfc_adapter *sa) |
nothing calls this directly
no test coverage detected