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

Function sfc_flow_start

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

Source from the content-addressed store, hash-verified

2997}
2998
2999int
3000sfc_flow_start(struct sfc_adapter *sa)
3001{
3002 struct rte_flow *flow;
3003 int rc = 0;
3004
3005 sfc_log_init(sa, "entry");
3006
3007 SFC_ASSERT(sfc_adapter_is_locked(sa));
3008
3009 sfc_ft_counters_reset(sa);
3010
3011 TAILQ_FOREACH(flow, &sa->flow_list, entries) {
3012 if (flow->internal)
3013 continue;
3014
3015 rc = sfc_flow_insert(sa, flow, NULL);
3016 if (rc != 0)
3017 goto fail_bad_flow;
3018 }
3019
3020 sfc_log_init(sa, "done");
3021
3022fail_bad_flow:
3023 return rc;
3024}
3025
3026static void
3027sfc_flow_cleanup(struct sfc_adapter *sa, struct rte_flow *flow)

Callers 1

sfc_try_startFunction · 0.85

Calls 2

sfc_ft_counters_resetFunction · 0.85
sfc_flow_insertFunction · 0.85

Tested by

no test coverage detected