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

Function nfp_flow_flush

dpdk/drivers/net/nfp/nfp_flow.c:4130–4156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4128}
4129
4130static int
4131nfp_flow_flush(struct rte_eth_dev *dev,
4132 struct rte_flow_error *error)
4133{
4134 int ret = 0;
4135 void *next_data;
4136 uint32_t iter = 0;
4137 const void *next_key;
4138 struct rte_flow *nfp_flow;
4139 struct nfp_flow_priv *priv;
4140 struct nfp_flower_representor *representor;
4141
4142 representor = dev->data->dev_private;
4143
4144 priv = nfp_flow_dev_to_priv(dev);
4145
4146 while (rte_hash_iterate(priv->flow_table, &next_key, &next_data, &iter) >= 0) {
4147 nfp_flow = next_data;
4148 if (nfp_flow->port_id == representor->port_id) {
4149 ret = nfp_flow_destroy(dev, nfp_flow, error);
4150 if (ret != 0)
4151 break;
4152 }
4153 }
4154
4155 return ret;
4156}
4157
4158static void
4159nfp_flow_stats_get(struct rte_eth_dev *dev,

Callers

nothing calls this directly

Calls 3

nfp_flow_dev_to_privFunction · 0.85
rte_hash_iterateFunction · 0.85
nfp_flow_destroyFunction · 0.85

Tested by

no test coverage detected