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

Function rte_flow_actions_update

dpdk/lib/ethdev/rte_flow.c:453–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453int
454rte_flow_actions_update(uint16_t port_id,
455 struct rte_flow *flow,
456 const struct rte_flow_action actions[],
457 struct rte_flow_error *error)
458{
459 struct rte_eth_dev *dev = &rte_eth_devices[port_id];
460 const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);
461 int ret;
462
463 if (unlikely(!ops))
464 return -rte_errno;
465 if (likely(!!ops->actions_update)) {
466 fts_enter(dev);
467 ret = ops->actions_update(dev, flow, actions, error);
468 fts_exit(dev);
469
470 rte_flow_trace_actions_update(port_id, flow, actions, ret);
471
472 return flow_err(port_id, ret, error);
473 }
474 return rte_flow_error_set(error, ENOSYS,
475 RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
476 NULL, rte_strerror(ENOSYS));
477}
478
479/* Destroy all flow rules associated with a port. */
480int

Callers

nothing calls this directly

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