| 4128 | } |
| 4129 | |
| 4130 | static int |
| 4131 | nfp_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 | |
| 4158 | static void |
| 4159 | nfp_flow_stats_get(struct rte_eth_dev *dev, |
nothing calls this directly
no test coverage detected