- /* Reset QoS table */
- qos_cfg.default_tc = 0;
- qos_cfg.discard_on_miss = false;
- qos_cfg.keep_entries = false;
- qos_cfg.key_cfg_iova = priv->extract.qos_extract_param;
- ret = dpni_set_qos_table(dpni, CMD_PRI_LOW, priv->token, &qos_cfg);
- if (ret < 0)
- DPAA2_PMD_ERR(
- "QoS table is not reset to default: %d\n", ret);
-
- for (tc_id = 0; tc_id < priv->num_rx_tc; tc_id++) {
- /* Reset FS table */
- memset(&tc_cfg, 0, sizeof(struct dpni_rx_tc_dist_cfg));
- ret = dpni_set_rx_tc_dist(dpni, CMD_PRI_LOW, priv->token,
- tc_id, &tc_cfg);
- if (ret < 0)
- DPAA2_PMD_ERR(
- "Error (%d) in flushing entries for TC (%d)",
- ret, tc_id);
+ while (flow) {
+ struct rte_flow *next = LIST_NEXT(flow, next);
+
+ dpaa2_flow_destroy(dev, flow, error);
+ flow = next;