From: Shagun Agrawal Date: Fri, 29 Jun 2018 18:12:22 +0000 (+0530) Subject: net/cxgbe: support to flush flows in HASH region X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a4279771c608c223a9cc5d97211ae8f8a76587f7;p=dpdk.git net/cxgbe: support to flush flows in HASH region Signed-off-by: Shagun Agrawal Signed-off-by: Rahul Lakkireddy --- diff --git a/drivers/net/cxgbe/cxgbe_flow.c b/drivers/net/cxgbe/cxgbe_flow.c index 48df62affe..4f00ac4c66 100644 --- a/drivers/net/cxgbe/cxgbe_flow.c +++ b/drivers/net/cxgbe/cxgbe_flow.c @@ -730,6 +730,19 @@ static int cxgbe_flow_flush(struct rte_eth_dev *dev, struct rte_flow_error *e) goto out; } } + + if (is_hashfilter(adap) && adap->tids.tid_tab) { + struct filter_entry *f; + + for (i = adap->tids.hash_base; i <= adap->tids.ntids; i++) { + f = (struct filter_entry *)adap->tids.tid_tab[i]; + + ret = cxgbe_check_n_destroy(f, dev, e); + if (ret < 0) + goto out; + } + } + out: return ret >= 0 ? 0 : ret; }