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

Function enic_flow_flush

dpdk/drivers/net/enic/enic_flow.c:1772–1788  ·  view source on GitHub ↗

* Flush all flows on the device. * * @see rte_flow_flush() * @see rte_flow_ops */

Source from the content-addressed store, hash-verified

1770 * @see rte_flow_ops
1771 */
1772static int
1773enic_flow_flush(struct rte_eth_dev *dev, struct rte_flow_error *error)
1774{
1775 struct rte_flow *flow;
1776 struct enic *enic = pmd_priv(dev);
1777
1778 ENICPMD_FUNC_TRACE();
1779
1780
1781 while (!LIST_EMPTY(&enic->flows)) {
1782 flow = LIST_FIRST(&enic->flows);
1783 enic_flow_del_filter(enic, flow, error);
1784 LIST_REMOVE(flow, next);
1785 rte_free(flow);
1786 }
1787 return 0;
1788}
1789
1790/**
1791 * Flow callback registration.

Callers

nothing calls this directly

Calls 3

pmd_privFunction · 0.85
enic_flow_del_filterFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected