DPDK patches and discussions
 help / color / mirror / Atom feed
From: Hemant Agrawal <hemant.agrawal@nxp.com>
To: dev@dpdk.org
Cc: Hemant Agrawal <hemant.agrawal@nxp.com>
Subject: [dpdk-dev] [PATCHv2 2/2] test: add support for testing bitrate stats free
Date: Thu, 14 May 2020 15:00:01 +0530
Message-ID: <20200514093001.12007-2-hemant.agrawal@nxp.com> (raw)
In-Reply-To: <20200514093001.12007-1-hemant.agrawal@nxp.com>

This patch adds support to test rte_stats_bitrate_free

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
This patch depends on : https://patches.dpdk.org/patch/70155/

 app/test/test_bitratestats.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app/test/test_bitratestats.c b/app/test/test_bitratestats.c
index 39d7f734d4..c14d32e037 100644
--- a/app/test/test_bitratestats.c
+++ b/app/test/test_bitratestats.c
@@ -32,12 +32,15 @@ test_stats_bitrate_create(void)
 	return TEST_SUCCESS;
 }
 
-/* To test free the resources from bitrate_reg test */
+/* To test free the resources from bitrate_create test */
 static int
 test_stats_bitrate_free(void)
 {
 	int ret = 0;
 
+	ret = rte_stats_bitrate_free(bitrate_data);
+	TEST_ASSERT(ret >= 0, "rte_stats_bitrate_free failed");
+
 	ret = rte_metrics_deinit();
 	TEST_ASSERT(ret >= 0, "Test Failed: rte_metrics_deinit failed");
 
-- 
2.17.1


  reply	other threads:[~2020-05-14  9:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-13 11:38 [dpdk-dev] [PATCH 1/2] bitratestats: add support for free Hemant Agrawal
2020-05-13 11:38 ` [dpdk-dev] [PATCH 2/2] test: add support for testing bitrate stats free Hemant Agrawal
2020-05-13 11:47 ` [dpdk-dev] [PATCH 1/2] bitratestats: add support for free Jerin Jacob
2020-05-14  9:30 ` [dpdk-dev] [PATCHv2 " Hemant Agrawal
2020-05-14  9:30   ` Hemant Agrawal [this message]
2020-05-19 15:19   ` Stephen Hemminger
2020-07-10 22:30     ` Thomas Monjalon
2020-07-11  3:11       ` Hemant Agrawal
2020-07-11  8:28   ` [dpdk-dev] [PATCH v3 " Hemant Agrawal
2020-07-11  8:28     ` [dpdk-dev] [PATCH v3 2/2] test: add support for testing bitrate stats free Hemant Agrawal
2020-10-19 14:09     ` [dpdk-dev] [PATCH v3 1/2] bitratestats: add support for free Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200514093001.12007-2-hemant.agrawal@nxp.com \
    --to=hemant.agrawal@nxp.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git