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

Function sfc_mae_flow_query

dpdk/drivers/net/sfc/sfc_mae.c:5740–5760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5738}
5739
5740int
5741sfc_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
5762int
5763sfc_mae_switchdev_init(struct sfc_adapter *sa)

Callers

nothing calls this directly

Calls 3

sfc_adapter_by_eth_devFunction · 0.85
sfc_mae_query_counterFunction · 0.85
rte_flow_error_setFunction · 0.85

Tested by

no test coverage detected