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

Function sfc_flow_flush

dpdk/drivers/net/sfc/sfc_flow.c:2664–2694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2662}
2663
2664static int
2665sfc_flow_flush(struct rte_eth_dev *dev,
2666 struct rte_flow_error *error)
2667{
2668 struct sfc_adapter *sa = sfc_adapter_by_eth_dev(dev);
2669 struct rte_flow *flow;
2670 int ret = 0;
2671 void *tmp;
2672
2673 sfc_adapter_lock(sa);
2674
2675 RTE_TAILQ_FOREACH_SAFE(flow, &sa->flow_list, entries, tmp) {
2676 if (flow->internal)
2677 continue;
2678
2679 if (sa->state == SFC_ETHDEV_STARTED) {
2680 int rc;
2681
2682 rc = sfc_flow_remove(sa, flow, error);
2683 if (rc != 0)
2684 ret = rc;
2685 }
2686
2687 TAILQ_REMOVE(&sa->flow_list, flow, entries);
2688 sfc_flow_free(sa, flow);
2689 }
2690
2691 sfc_adapter_unlock(sa);
2692
2693 return -ret;
2694}
2695
2696static int
2697sfc_flow_query(struct rte_eth_dev *dev,

Callers

nothing calls this directly

Calls 3

sfc_adapter_by_eth_devFunction · 0.85
sfc_flow_removeFunction · 0.85
sfc_flow_freeFunction · 0.85

Tested by

no test coverage detected