* Flush all flows on the device. * * @see rte_flow_flush() * @see rte_flow_ops */
| 1770 | * @see rte_flow_ops |
| 1771 | */ |
| 1772 | static int |
| 1773 | enic_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. |
nothing calls this directly
no test coverage detected