DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: support query of AGE action
@ 2020-10-01  6:53 Dekel Peled
  2020-10-01 17:04 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Dekel Peled @ 2020-10-01  6:53 UTC (permalink / raw)
  To: wenzhuo.lu, beilei.xing, bernard.iremonger; +Cc: matan, dev

Following ethdev update [1], this patch adds CLI support to query
information related to AGE action.

[1] https://mails.dpdk.org/archives/dev/2020-September/183699.html

Signed-off-by: Dekel Peled <dekelp@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
---
 app/test-pmd/config.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 17a6efe..d8e1ca3 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -1767,6 +1767,7 @@ void print_valid_ports(void)
 	union {
 		struct rte_flow_query_count count;
 		struct rte_flow_action_rss rss_conf;
+		struct rte_flow_query_age age;
 	} query;
 	int ret;
 
@@ -1789,6 +1790,7 @@ void print_valid_ports(void)
 	switch (action->type) {
 	case RTE_FLOW_ACTION_TYPE_COUNT:
 	case RTE_FLOW_ACTION_TYPE_RSS:
+	case RTE_FLOW_ACTION_TYPE_AGE:
 		break;
 	default:
 		printf("Cannot query action type %d (%s)\n",
@@ -1816,6 +1818,16 @@ void print_valid_ports(void)
 	case RTE_FLOW_ACTION_TYPE_RSS:
 		rss_config_display(&query.rss_conf);
 		break;
+	case RTE_FLOW_ACTION_TYPE_AGE:
+		printf("%s:\n"
+		       " aged: %u\n"
+		       " last_hit_time_valid: %u\n"
+		       " last_hit_time: %" PRIu32 "\n",
+		       name,
+		       query.age.aged,
+		       query.age.last_hit_time_valid,
+		       query.age.last_hit_time);
+		break;
 	default:
 		printf("Cannot display result for action type %d (%s)\n",
 		       action->type, name);
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] app/testpmd: support query of AGE action
  2020-10-01  6:53 [dpdk-dev] [PATCH] app/testpmd: support query of AGE action Dekel Peled
@ 2020-10-01 17:04 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2020-10-01 17:04 UTC (permalink / raw)
  To: Dekel Peled, wenzhuo.lu, beilei.xing, bernard.iremonger; +Cc: matan, dev

On 10/1/2020 7:53 AM, Dekel Peled wrote:
> Following ethdev update [1], this patch adds CLI support to query
> information related to AGE action.
> 
> [1] https://mails.dpdk.org/archives/dev/2020-September/183699.html
> 

Hi Dekel,

If there will be a new version of ethdev patch or this patch, can you please put 
these patches into same patchset?
It is harder to manage dependency when they are separate.

> Signed-off-by: Dekel Peled <dekelp@nvidia.com>
> Acked-by: Matan Azrad <matan@nvidia.com>

<...>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-01 17:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01  6:53 [dpdk-dev] [PATCH] app/testpmd: support query of AGE action Dekel Peled
2020-10-01 17:04 ` Ferruh Yigit

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