MCPcopy Index your code
hub / github.com/F-Stack/f-stack / rte_flow_query

Function rte_flow_query

dpdk/lib/ethdev/rte_flow.c:506–532  ·  view source on GitHub ↗

Query an existing flow rule. */

Source from the content-addressed store, hash-verified

504
505/* Query an existing flow rule. */
506int
507rte_flow_query(uint16_t port_id,
508 struct rte_flow *flow,
509 const struct rte_flow_action *action,
510 void *data,
511 struct rte_flow_error *error)
512{
513 struct rte_eth_dev *dev = &rte_eth_devices[port_id];
514 const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);
515 int ret;
516
517 if (!ops)
518 return -rte_errno;
519 if (likely(!!ops->query)) {
520 fts_enter(dev);
521 ret = ops->query(dev, flow, action, data, error);
522 fts_exit(dev);
523 ret = flow_err(port_id, ret, error);
524
525 rte_flow_trace_query(port_id, flow, action, data, ret);
526
527 return ret;
528 }
529 return rte_flow_error_set(error, ENOSYS,
530 RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
531 NULL, rte_strerror(ENOSYS));
532}
533
534/* Restrict ingress traffic to the defined flow rules. */
535int

Callers 4

bond_flow_query_countFunction · 0.85
fs_flow_queryFunction · 0.85
port_flow_queryFunction · 0.85
flow_print_countersFunction · 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