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

Function tap_flow_flush

dpdk/drivers/net/tap/tap_flow.c:1655–1667  ·  view source on GitHub ↗

* Destroy all flows. * * @see rte_flow_flush() * @see rte_flow_ops */

Source from the content-addressed store, hash-verified

1653 * @see rte_flow_ops
1654 */
1655int
1656tap_flow_flush(struct rte_eth_dev *dev, struct rte_flow_error *error)
1657{
1658 struct pmd_internals *pmd = dev->data->dev_private;
1659 struct rte_flow *flow;
1660
1661 while (!LIST_EMPTY(&pmd->flows)) {
1662 flow = LIST_FIRST(&pmd->flows);
1663 if (tap_flow_destroy(dev, flow, error) < 0)
1664 return -1;
1665 }
1666 return 0;
1667}
1668
1669/**
1670 * Add an implicit flow rule on the remote device to make sure traffic gets to

Callers 1

tap_dev_closeFunction · 0.85

Calls 1

tap_flow_destroyFunction · 0.85

Tested by

no test coverage detected