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

Function iavf_flow_flush

dpdk/drivers/net/iavf/iavf_generic_flow.c:2339–2359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2337}
2338
2339int
2340iavf_flow_flush(struct rte_eth_dev *dev,
2341 struct rte_flow_error *error)
2342{
2343 struct iavf_adapter *ad =
2344 IAVF_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private);
2345 struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(ad);
2346 struct rte_flow *p_flow;
2347 void *temp;
2348 int ret = 0;
2349
2350 RTE_TAILQ_FOREACH_SAFE(p_flow, &vf->flow_list, node, temp) {
2351 ret = iavf_flow_destroy(dev, p_flow, error);
2352 if (ret) {
2353 PMD_DRV_LOG(ERR, "Failed to flush flows");
2354 return -EINVAL;
2355 }
2356 }
2357
2358 return ret;
2359}
2360
2361static int
2362iavf_flow_query(struct rte_eth_dev *dev,

Callers 1

iavf_dev_closeFunction · 0.85

Calls 1

iavf_flow_destroyFunction · 0.85

Tested by

no test coverage detected