Message ID | 20200707092244.12791-19-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp738436ilg; Tue, 7 Jul 2020 02:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlF5v0wO6KerxUsoUCw8dGp2UBko08xczkfJIj/iPTsK8/JIJlZ76nHUifPgIGbEA1f22E X-Received: by 2002:a25:b948:: with SMTP id s8mr83844871ybm.487.1594114252362; Tue, 07 Jul 2020 02:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594114252; cv=none; d=google.com; s=arc-20160816; b=zUguhTubVz+A5tscno9i0dg8+9+1pkKQP2XUWvOyU0H2a7upQMhzjIl6kZG9uhgkrU ZY0msQw2zURJX8gylOdnBzzaXeYp8kPV9fzTPtsWNRN7LswJW/9NCjEOqFO6Zk+WnXFx d9oPnbirG3c0CCZb7+A/8FEVn96o2eeLyaTKezTvHXQbW+OoYpFsrzAhU82xnNSUvXMM FGmFACrUq6ZbBh0yn01lzLliPoOT/sOIX2tYJ2xmYQN/L6lcAaH6+XV8N582/iDTbe5P VXAeZvJor0w6CVuoYRN8QRqE58OI1bRv8D68otkFsMIRxl1ViHmwVm0OxOG+qM4dv8jQ GvJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=M8OG8GAYbzoHVrkiknFokl2vkVJfoC+7fYarAZiUnx4=; b=W+q5vgTMmpocU4GXw05G/6vU5GEW/mwkyfB8iUfuYaqmckXQX+dcRrfHzhvnhB22wu doZSLByJchJC5brDd5i6drlxSuXg0T4+ETJhlytDCN1LgNq5QqVLZGMjFwoYad/V/Z55 wZymkvaBEFmAyISn2INzevKyo5JZ3hcMilEj5fprUFD4Izrr/yE7HhNz9FHr3e767MfD LgHkTxZKSmIdbwCSbtyMLESVUUXNAnwRNHbyxpfOgGjUX656otagN21uPd3VrDHLCI0x oCj6CfenBV8K5U+PqUAnmfg4umY5EObhyMqkdv9g63JrEujztHUlV/twAaSR7YPtIlz4 uvIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id z6si9441135ybh.203.2020.07.07.02.30.52; Tue, 07 Jul 2020 02:30:52 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2318E1DDE5; Tue, 7 Jul 2020 11:27:28 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 46A4F1DD24 for <dev@dpdk.org>; Tue, 7 Jul 2020 11:27:11 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 117B21A0A30; Tue, 7 Jul 2020 11:27:11 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 583BD1A0A46; Tue, 7 Jul 2020 11:27:09 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 1417B402C8; Tue, 7 Jul 2020 17:27:06 +0800 (SGT) From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Jun Yang <jun.yang@nxp.com> Date: Tue, 7 Jul 2020 14:52:33 +0530 Message-Id: <20200707092244.12791-19-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200707092244.12791-1-hemant.agrawal@nxp.com> References: <20200527132326.1382-1-hemant.agrawal@nxp.com> <20200707092244.12791-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 18/29] net/dpaa2: free flow rule memory X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
NXP DPAAx enhancements
|
expand
|
diff --git a/drivers/net/dpaa2/dpaa2_flow.c b/drivers/net/dpaa2/dpaa2_flow.c index 507a5d0e3..941d62b80 100644 --- a/drivers/net/dpaa2/dpaa2_flow.c +++ b/drivers/net/dpaa2/dpaa2_flow.c @@ -3594,6 +3594,7 @@ int dpaa2_flow_destroy(struct rte_eth_dev *dev, "Error in entry addition in QoS table(%d)", ret); goto error; } + priv->qos_index[flow->qos_index] = 0; break; default: DPAA2_PMD_ERR( @@ -3603,6 +3604,10 @@ int dpaa2_flow_destroy(struct rte_eth_dev *dev, } LIST_REMOVE(flow, next); + rte_free((void *)(size_t)flow->qos_rule.key_iova); + rte_free((void *)(size_t)flow->qos_rule.mask_iova); + rte_free((void *)(size_t)flow->fs_rule.key_iova); + rte_free((void *)(size_t)flow->fs_rule.mask_iova); /* Now free the flow */ rte_free(flow);