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

Function rte_flow_flush

dpdk/lib/ethdev/rte_flow.c:480–503  ·  view source on GitHub ↗

Destroy all flow rules associated with a port. */

Source from the content-addressed store, hash-verified

478
479/* Destroy all flow rules associated with a port. */
480int
481rte_flow_flush(uint16_t port_id,
482 struct rte_flow_error *error)
483{
484 struct rte_eth_dev *dev = &rte_eth_devices[port_id];
485 const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);
486 int ret;
487
488 if (unlikely(!ops))
489 return -rte_errno;
490 if (likely(!!ops->flush)) {
491 fts_enter(dev);
492 ret = ops->flush(dev, error);
493 fts_exit(dev);
494 ret = flow_err(port_id, ret, error);
495
496 rte_flow_trace_flush(port_id, ret);
497
498 return ret;
499 }
500 return rte_flow_error_set(error, ENOSYS,
501 RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
502 NULL, rte_strerror(ENOSYS));
503}
504
505/* Query an existing flow rule. */
506int

Callers 5

fs_eth_dev_conf_applyFunction · 0.85
fs_flow_flushFunction · 0.85
mainFunction · 0.85
port_flow_flushFunction · 0.85
main_loopFunction · 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