src/dpdk/drivers/net/enic/enic_flow.c
static int
enic_flow_flush(struct rte_eth_dev *dev, struct rte_flow_error *error)
{
	struct rte_flow *flow;
	struct enic *enic = pmd_priv(dev);

	ENICPMD_FUNC_TRACE();


	while (!LIST_EMPTY(&enic->flows)) {
		flow = LIST_FIRST(&enic->flows);
		enic_flow_del_filter(enic, flow, error);
		LIST_REMOVE(flow, next);
		rte_free(flow);
	}
	return 0;
}
/**
 * Flush all flows on the device.
 *
 * @see rte_flow_flush()
 * @see rte_flow_ops
 */
Flush all flows on the device.
Flush all flows on the device .
static int
enic_flow_flush(struct rte_eth_dev *dev, struct rte_flow_error *error)
{
	struct rte_flow *flow;
	struct enic *enic = pmd_priv(dev);
	ENICPMD_FUNC_TRACE();
	while (!LIST_EMPTY(&enic->flows)) {
		flow = LIST_FIRST(&enic->flows);
		enic_flow_del_filter(enic, flow, error);
		LIST_REMOVE(flow, next);
		rte_free(flow);
	}
	return 0;
}
static int enic_flow_flush ( struct rte_eth_dev * dev , struct rte_flow_error * error ) { struct rte_flow * flow ; struct enic * enic = pmd_priv ( dev ) ; ENICPMD_FUNC_TRACE ( ) ; while ( ! LIST_EMPTY ( & enic -> flows ) ) { flow = LIST_FIRST ( & enic -> flows ) ; enic_flow_del_filter ( enic , flow , error ) ; LIST_REMOVE ( flow , next ) ; rte_free ( flow ) ; } return 0 ; }
Flush all flows on the device.
Flush all flows on the device .