Skip to contentSkip to conversation

app/test-pipeline: relax RSS hash requirement

PATCH Superseded Feifei Wang 4 participants 12 messages Jun 26, 2023 – Nov 23, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app/test-pipeline: relax RSS hash requirement

For some drivers which can not support the configured RSS hash functions, the thread reports 'invalid rss_hf' when doing device configure.

For example, i40e driver can not support 'RTE_ETH_RSS_IPV4', 'RTE_ETH_RSS_IPV6' and 'RTE_ETH_RSS_NONFRAG_IPV6_OTHER', thus it can not run successfully in test-pipeline with XL710 NIC and reports the issue:
-------------------------------------------------------------
Ethdev port_id=0 invalid rss_hf: 0xa38c, valid value: 0x7ef8 PANIC in app_init_ports():
Cannot init NIC port 0 (-22)
-------------------------------------------------------------

To fix this, referring to l3fwd operation, adjust the 'rss_hf' based on device capability and just report a warning.

---
 app/test-pipeline/init.c | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)
app/test-pipeline/init.c +21 -1
index d146c44be0..84a1734519 100644
@@ -188,21 +188,41 @@ static void
 app_init_ports(void)
 {
 	uint32_t i;
+	struct rte_eth_dev_info dev_info;
+
 
 	/* Init NIC ports, then start the ports */
 	for (i = 0; i < app.n_ports; i++) {
 		uint16_t port;
 		int ret;
+		struct rte_eth_conf local_port_conf = port_conf;
 
 		port = app.ports[i];
 		RTE_LOG(INFO, USER1, "Initializing NIC port %u ...\n", port);
 
+		ret = rte_eth_dev_info_get(port, &dev_info);
+		if (ret != 0)
+			rte_panic("Error during getting device (port %u) info: %s\n",
+					port, rte_strerror(-ret));
+
 		/* Init port */
+		local_port_conf.rx_adv_conf.rss_conf.rss_hf &=
+			dev_info.flow_type_rss_offloads;
+		if (local_port_conf.rx_adv_conf.rss_conf.rss_hf !=
+				port_conf.rx_adv_conf.rss_conf.rss_hf) {
+			printf("Warning:"
+				"Port %u modified RSS hash function based on hardware support,"
+				"requested:%#"PRIx64" configured:%#"PRIx64"\n",
+				port,
+				port_conf.rx_adv_conf.rss_conf.rss_hf,
+				local_port_conf.rx_adv_conf.rss_conf.rss_hf);
+		}
+
 		ret = rte_eth_dev_configure(
 			port,
 			1,
 			1,
-			&port_conf);
+			&local_port_conf);
 		if (ret < 0)
 			rte_panic("Cannot init NIC port %u (%d)\n", port, ret);
 
Signature · 1 line
2.25.1
#1 lore raw

Cristian, any comment?

26/06/2023 09:45, Feifei Wang:

Quoted 70 lines

For some drivers which can not support the configured RSS hash functions, the thread reports 'invalid rss_hf' when doing device configure.

For example, i40e driver can not support 'RTE_ETH_RSS_IPV4', 'RTE_ETH_RSS_IPV6' and 'RTE_ETH_RSS_NONFRAG_IPV6_OTHER', thus it can not run successfully in test-pipeline with XL710 NIC and reports the issue:
-------------------------------------------------------------
Ethdev port_id=0 invalid rss_hf: 0xa38c, valid value: 0x7ef8 PANIC in app_init_ports():
Cannot init NIC port 0 (-22)
-------------------------------------------------------------

To fix this, referring to l3fwd operation, adjust the 'rss_hf' based on device capability and just report a warning.

---
 app/test-pipeline/init.c | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)
app/test-pipeline/init.c +21 -1
index d146c44be0..84a1734519 100644
@@ -188,21 +188,41 @@ static void
 app_init_ports(void)
 {
 	uint32_t i;
+	struct rte_eth_dev_info dev_info;
+
 
 	/* Init NIC ports, then start the ports */
 	for (i = 0; i < app.n_ports; i++) {
 		uint16_t port;
 		int ret;
+		struct rte_eth_conf local_port_conf = port_conf;
 
 		port = app.ports[i];
 		RTE_LOG(INFO, USER1, "Initializing NIC port %u ...\n", port);
 
+		ret = rte_eth_dev_info_get(port, &dev_info);
+		if (ret != 0)
+			rte_panic("Error during getting device (port %u) info: %s\n",
+					port, rte_strerror(-ret));
+
 		/* Init port */
+		local_port_conf.rx_adv_conf.rss_conf.rss_hf &=
+			dev_info.flow_type_rss_offloads;
+		if (local_port_conf.rx_adv_conf.rss_conf.rss_hf !=
+				port_conf.rx_adv_conf.rss_conf.rss_hf) {
+			printf("Warning:"
+				"Port %u modified RSS hash function based on hardware support,"
+				"requested:%#"PRIx64" configured:%#"PRIx64"\n",
+				port,
+				port_conf.rx_adv_conf.rss_conf.rss_hf,
+				local_port_conf.rx_adv_conf.rss_conf.rss_hf);
+		}
+
 		ret = rte_eth_dev_configure(
 			port,
 			1,
 			1,
-			&port_conf);
+			&local_port_conf);
 		if (ret < 0)
 			rte_panic("Cannot init NIC port %u (%d)\n", port, ret);
 
Acked-by on v1 1/1
#2 lore raw
In reply to Feifei Wang
Quoted 27 lines · Feifei Wang

For some drivers which can not support the configured RSS hash functions, the thread reports 'invalid rss_hf' when doing device configure.

For example, i40e driver can not support 'RTE_ETH_RSS_IPV4', 'RTE_ETH_RSS_IPV6' and 'RTE_ETH_RSS_NONFRAG_IPV6_OTHER', thus it can not run successfully in test-pipeline with XL710 NIC and reports the issue:
-------------------------------------------------------------
Ethdev port_id=0 invalid rss_hf: 0xa38c, valid value: 0x7ef8 PANIC in app_init_ports():
Cannot init NIC port 0 (-22)
-------------------------------------------------------------

To fix this, referring to l3fwd operation, adjust the 'rss_hf' based on device capability and just report a warning.

---
  app/test-pipeline/init.c | 22 +++++++++++++++++++++-
  1 file changed, 21 insertions(+), 1 deletion(-)
app/test-pipeline/init.c +0 -0
index d146c44be0..84a1734519 100644

app/test-pipeline/init.c static void · line 192

Quoted 5 lines
app/test-pipeline/init.c +2 -0
@@ -188,21 +188,41 @@ static void
  app_init_ports(void)
  {
  	uint32_t i;
+	struct rte_eth_dev_info dev_info;
+

please delete this blank line.

Quoted 27 lines
app/test-pipeline/init.c +17 -0
  	/* Init NIC ports, then start the ports */
  	for (i = 0; i < app.n_ports; i++) {
  		uint16_t port;
  		int ret;
+		struct rte_eth_conf local_port_conf = port_conf;
 
  		port = app.ports[i];
  		RTE_LOG(INFO, USER1, "Initializing NIC port %u ...\n", port);
 
+		ret = rte_eth_dev_info_get(port, &dev_info);
+		if (ret != 0)
+			rte_panic("Error during getting device (port %u) info: %s\n",
+					port, rte_strerror(-ret));
+
  		/* Init port */
+		local_port_conf.rx_adv_conf.rss_conf.rss_hf &=
+			dev_info.flow_type_rss_offloads;
+		if (local_port_conf.rx_adv_conf.rss_conf.rss_hf !=
+				port_conf.rx_adv_conf.rss_conf.rss_hf) {
+			printf("Warning:"
+				"Port %u modified RSS hash function based on hardware support,"
+				"requested:%#"PRIx64" configured:%#"PRIx64"\n",
+				port,
+				port_conf.rx_adv_conf.rss_conf.rss_hf,
+				local_port_conf.rx_adv_conf.rss_conf.rss_hf);
+		}

app/test-pipeline/init.c static void · line 228

Quoted 10 lines
app/test-pipeline/init.c +2 -1
+
  		ret = rte_eth_dev_configure(
  			port,
  			1,
  			1,
-			&port_conf);
+			&local_port_conf);
  		if (ret < 0)
  			rte_panic("Cannot init NIC port %u (%d)\n", port, ret);
 

This treatment is very common.

#3 lore raw
Quoted 36 lines

-----Original Message-----
From: lihuisong (C) <[email protected]>
Sent: Friday, July 14, 2023 3:50 PM
To: Feifei Wang <[email protected]>; Cristian Dumitrescu <[email protected]>
Cc: [email protected]; nd <[email protected]>; Ruifeng Wang <[email protected]>; Trevor Tao <[email protected]>
Subject: Re: [PATCH] app/test-pipeline: relax RSS hash requirement

Quoted 5 lines · Feifei Wang

For some drivers which can not support the configured RSS hash functions, the thread reports 'invalid rss_hf' when doing device configure.

For example, i40e driver can not support 'RTE_ETH_RSS_IPV4', 'RTE_ETH_RSS_IPV6' and 'RTE_ETH_RSS_NONFRAG_IPV6_OTHER', thus it

can

Quoted 17 lines

not run successfully in test-pipeline with XL710 NIC and reports the issue:
-------------------------------------------------------------
Ethdev port_id=0 invalid rss_hf: 0xa38c, valid value: 0x7ef8 PANIC in app_init_ports():
Cannot init NIC port 0 (-22)
-------------------------------------------------------------

To fix this, referring to l3fwd operation, adjust the 'rss_hf' based on device capability and just report a warning.

---
  app/test-pipeline/init.c | 22 +++++++++++++++++++++-
  1 file changed, 21 insertions(+), 1 deletion(-)
Quoted 11 lines

app/test-pipeline/init.c static void · line 192

Quoted 10 lines
app/test-pipeline/init.c index renamed from app/test-pipeline/init.c +0 -0

d146c44be0..84a1734519 100644

app/test-pipeline/init.c +2 -0
@@ -188,21 +188,41 @@ static void
  app_init_ports(void)
  {
  	uint32_t i;
+	struct rte_eth_dev_info dev_info;
+

please delete this blank line.

Thanks for the reviewing. I will change this and update a new version.

Quoted 43 lines

app/test-pipeline/init.c static void

Quoted 13 lines
app/test-pipeline/init.c +4 -0
  	/* Init NIC ports, then start the ports */
  	for (i = 0; i < app.n_ports; i++) {
  		uint16_t port;
  		int ret;
+		struct rte_eth_conf local_port_conf = port_conf;
 
  		port = app.ports[i];
  		RTE_LOG(INFO, USER1, "Initializing NIC port %u ...\n", port);
 
+		ret = rte_eth_dev_info_get(port, &dev_info);
+		if (ret != 0)
+			rte_panic("Error during getting device (port %u)

info: %s\n",

app/test-pipeline/init.c static void

Quoted 9 lines
app/test-pipeline/init.c +8 -0
+					port, rte_strerror(-ret));
+
  		/* Init port */
+		local_port_conf.rx_adv_conf.rss_conf.rss_hf &=
+			dev_info.flow_type_rss_offloads;
+		if (local_port_conf.rx_adv_conf.rss_conf.rss_hf !=
+				port_conf.rx_adv_conf.rss_conf.rss_hf) {
+			printf("Warning:"
+				"Port %u modified RSS hash function based

on hardware support,"

app/test-pipeline/init.c static void · line 214

Quoted 1 line
app/test-pipeline/init.c +1 -0
+				"requested:%#"PRIx64"

configured:%#"PRIx64"\n",

app/test-pipeline/init.c static void

Quoted 13 lines
app/test-pipeline/init.c +6 -1
+				port,
+				port_conf.rx_adv_conf.rss_conf.rss_hf,
+				local_port_conf.rx_adv_conf.rss_conf.rss_hf);
+		}
+
  		ret = rte_eth_dev_configure(
  			port,
  			1,
  			1,
-			&port_conf);
+			&local_port_conf);
  		if (ret < 0)
  			rte_panic("Cannot init NIC port %u (%d)\n", port,

ret);

Quoted 1 line

This treatment is very common.

#4 lore raw

PATCH v2 1/1 app/test-pipeline: relax RSS hash requirement

In reply to Feifei Wang

For some drivers which can not support the configured RSS hash functions, the thread reports 'invalid rss_hf' when doing device configure.

For example, i40e driver can not support 'RTE_ETH_RSS_IPV4', 'RTE_ETH_RSS_IPV6' and 'RTE_ETH_RSS_NONFRAG_IPV6_OTHER', thus it can not run successfully in test-pipeline with XL710 NIC and reports the issue:
-------------------------------------------------------------
Ethdev port_id=0 invalid rss_hf: 0xa38c, valid value: 0x7ef8 PANIC in app_init_ports():
Cannot init NIC port 0 (-22)
-------------------------------------------------------------

To fix this, referring to l3fwd operation, adjust the 'rss_hf' based on device capability and just report a warning.

---
 app/test-pipeline/init.c | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
app/test-pipeline/init.c +20 -1
index d146c44be0..558f0e428d 100644
@@ -188,21 +188,40 @@ static void
 app_init_ports(void)
 {
 	uint32_t i;
+	struct rte_eth_dev_info dev_info;
 
 	/* Init NIC ports, then start the ports */
 	for (i = 0; i < app.n_ports; i++) {
 		uint16_t port;
 		int ret;
+		struct rte_eth_conf local_port_conf = port_conf;
 
 		port = app.ports[i];
 		RTE_LOG(INFO, USER1, "Initializing NIC port %u ...\n", port);
 
+		ret = rte_eth_dev_info_get(port, &dev_info);
+		if (ret != 0)
+			rte_panic("Error during getting device (port %u) info: %s\n",
+					port, rte_strerror(-ret));
+
 		/* Init port */
+		local_port_conf.rx_adv_conf.rss_conf.rss_hf &=
+			dev_info.flow_type_rss_offloads;
+		if (local_port_conf.rx_adv_conf.rss_conf.rss_hf !=
+				port_conf.rx_adv_conf.rss_conf.rss_hf) {
+			printf("Warning:"
+				"Port %u modified RSS hash function based on hardware support,"
+				"requested:%#"PRIx64" configured:%#"PRIx64"\n",
+				port,
+				port_conf.rx_adv_conf.rss_conf.rss_hf,
+				local_port_conf.rx_adv_conf.rss_conf.rss_hf);
+		}
+
 		ret = rte_eth_dev_configure(
 			port,
 			1,
 			1,
-			&port_conf);
+			&local_port_conf);
 		if (ret < 0)
 			rte_panic("Cannot init NIC port %u (%d)\n", port, ret);
 
Signature · 1 line
2.25.1
#5 lore raw

v3 cover fix test-pipeline issues

In reply to Feifei Wang

For test-pipeline application, there are some problems with the normal operation of the program and security issues. These patches can fix these issues.

v3: fix SIGINT handling issue and add dev close operation

Feifei Wang (3):
app/test-pipeline: relax RSS hash requirement
app/test-pipeline: fix SIGINT handling issue
app/test-pipeline: add dev close operation

 app/test-pipeline/init.c              |  22 ++++-
 app/test-pipeline/main.c              |  33 +++++++
 app/test-pipeline/main.h              |   2 +
 app/test-pipeline/pipeline_acl.c      |   6 +-
 app/test-pipeline/pipeline_hash.c     | 110 ++++++++++-----------
 app/test-pipeline/pipeline_lpm.c      |   6 +-
 app/test-pipeline/pipeline_lpm_ipv6.c |   6 +-
 app/test-pipeline/pipeline_stub.c     |   6 +-
 app/test-pipeline/runtime.c           | 132 ++++++++++++++------------
 9 files changed, 198 insertions(+), 125 deletions(-)
Signature · 1 line
2.25.1
#6 lore raw

PATCH v3 1/3 app/test-pipeline: relax RSS hash requirement

For some drivers which can not support the configured RSS hash functions, the thread reports 'invalid rss_hf' when doing device configure.

For example, i40e driver can not support 'RTE_ETH_RSS_IPV4', 'RTE_ETH_RSS_IPV6' and 'RTE_ETH_RSS_NONFRAG_IPV6_OTHER', thus it can not run successfully in test-pipeline with XL710 NIC and reports the issue:
-------------------------------------------------------------
Ethdev port_id=0 invalid rss_hf: 0xa38c, valid value: 0x7ef8 PANIC in app_init_ports():
Cannot init NIC port 0 (-22)
-------------------------------------------------------------

To fix this, referring to l3fwd operation, adjust the 'rss_hf' based on device capability and just report a warning.

---
 app/test-pipeline/init.c | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)
app/test-pipeline/init.c +21 -1
index d146c44be0..84a1734519 100644
@@ -188,21 +188,41 @@ static void
 app_init_ports(void)
 {
 	uint32_t i;
+	struct rte_eth_dev_info dev_info;
+
 
 	/* Init NIC ports, then start the ports */
 	for (i = 0; i < app.n_ports; i++) {
 		uint16_t port;
 		int ret;
+		struct rte_eth_conf local_port_conf = port_conf;
 
 		port = app.ports[i];
 		RTE_LOG(INFO, USER1, "Initializing NIC port %u ...\n", port);
 
+		ret = rte_eth_dev_info_get(port, &dev_info);
+		if (ret != 0)
+			rte_panic("Error during getting device (port %u) info: %s\n",
+					port, rte_strerror(-ret));
+
 		/* Init port */
+		local_port_conf.rx_adv_conf.rss_conf.rss_hf &=
+			dev_info.flow_type_rss_offloads;
+		if (local_port_conf.rx_adv_conf.rss_conf.rss_hf !=
+				port_conf.rx_adv_conf.rss_conf.rss_hf) {
+			printf("Warning:"
+				"Port %u modified RSS hash function based on hardware support,"
+				"requested:%#"PRIx64" configured:%#"PRIx64"\n",
+				port,
+				port_conf.rx_adv_conf.rss_conf.rss_hf,
+				local_port_conf.rx_adv_conf.rss_conf.rss_hf);
+		}
+
 		ret = rte_eth_dev_configure(
 			port,
 			1,
 			1,
-			&port_conf);
+			&local_port_conf);
 		if (ret < 0)
 			rte_panic("Cannot init NIC port %u (%d)\n", port, ret);
 
Signature · 1 line
2.25.1
#7 lore raw

PATCH v3 2/3 app/test-pipeline: fix SIGINT handling issue

In reply to Feifei Wang

For test-pipeline, if the main core receive SIGINT signal, it will kill all the threads immediately and not wait other threads to finish their jobs.

To fix this, add 'signal_handler' function.

Fixes 48f31ca50cc4 ("app/pipeline: packet framework benchmark")
---
 app/test-pipeline/main.c              |  14 +++
 app/test-pipeline/main.h              |   2 +
 app/test-pipeline/pipeline_acl.c      |   6 +-
 app/test-pipeline/pipeline_hash.c     | 110 ++++++++++-----------
 app/test-pipeline/pipeline_lpm.c      |   6 +-
 app/test-pipeline/pipeline_lpm_ipv6.c |   6 +-
 app/test-pipeline/pipeline_stub.c     |   6 +-
 app/test-pipeline/runtime.c           | 132 ++++++++++++++------------
 8 files changed, 158 insertions(+), 124 deletions(-)
app/test-pipeline/main.c +14 -0
index 1e16794183..8633933fd9 100644
@@ -10,6 +10,7 @@
 #include <string.h>
 #include <sys/queue.h>
 #include <stdarg.h>
+#include <signal.h>
 #include <errno.h>
 #include <getopt.h>
 #include <unistd.h>
@@ -41,6 +42,15 @@
 
 #include "main.h"
 
+bool force_quit;
+
+static void
+signal_handler(int signum)
+{
+	if (signum == SIGINT || signum == SIGTERM)
+		force_quit = true;
+}
+
 int
 main(int argc, char **argv)
 {
@@ -54,6 +64,10 @@ main(int argc, char **argv)
 	argc -= ret;
 	argv += ret;
 
+	force_quit = false;
+	signal(SIGINT, signal_handler);
+	signal(SIGTERM, signal_handler);
+
 	/* Parse application arguments (after the EAL ones) */
 	ret = app_parse_args(argc, argv);
 	if (ret < 0) {
app/test-pipeline/main.h +2 -0
index 59dcfddbf4..9df157de22 100644
@@ -60,6 +60,8 @@ struct app_params {
 
 extern struct app_params app;
 
+extern bool force_quit;
+
 int app_parse_args(int argc, char **argv);
 void app_print_usage(void);
 void app_init(void);
app/test-pipeline/pipeline_acl.c +4 -2
index 2f04868e3e..9eb4053e23 100644
@@ -236,14 +236,16 @@ app_main_loop_worker_pipeline_acl(void) {
 
 	/* Run-time */
 #if APP_FLUSH == 0
-	for ( ; ; )
+	while (!force_quit)
 		rte_pipeline_run(p);
 #else
-	for (i = 0; ; i++) {
+	i = 0;
+	while (!force_quit) {
 		rte_pipeline_run(p);
 
 		if ((i & APP_FLUSH) == 0)
 			rte_pipeline_flush(p);
+		i++;
 	}
 #endif
 }
app/test-pipeline/pipeline_hash.c +57 -53

130 lines not on this page · raw message

app/test-pipeline/pipeline_lpm.c +4 -2
index 854319174b..8a59bd0042 100644
@@ -160,14 +160,16 @@ app_main_loop_worker_pipeline_lpm(void) {
 
 	/* Run-time */
 #if APP_FLUSH == 0
-	for ( ; ; )
+	while (!force_quit)
 		rte_pipeline_run(p);
 #else
-	for (i = 0; ; i++) {
+	i = 0;
+	while (!force_quit) {
 		rte_pipeline_run(p);
 
 		if ((i & APP_FLUSH) == 0)
 			rte_pipeline_flush(p);
+		i++;
 	}
 #endif
 }
app/test-pipeline/pipeline_lpm_ipv6.c +4 -2
index 18d4f018f1..207ffbeff0 100644
@@ -158,14 +158,16 @@ app_main_loop_worker_pipeline_lpm_ipv6(void) {
 
 	/* Run-time */
 #if APP_FLUSH == 0
-	for ( ; ; )
+	while (!force_quit)
 		rte_pipeline_run(p);
 #else
-	for (i = 0; ; i++) {
+	i = 0;
+	while (!force_quit) {
 		rte_pipeline_run(p);
 
 		if ((i & APP_FLUSH) == 0)
 			rte_pipeline_flush(p);
+		i++;
 	}
 #endif
 }
app/test-pipeline/pipeline_stub.c +4 -2
index b6750d51bf..48a638aad7 100644
@@ -122,14 +122,16 @@ app_main_loop_worker_pipeline_stub(void) {
 
 	/* Run-time */
 #if APP_FLUSH == 0
-	for ( ; ; )
+	while (!force_quit)
 		rte_pipeline_run(p);
 #else
-	for (i = 0; ; i++) {
+	i = 0;
+	while (!force_quit) {
 		rte_pipeline_run(p);
 
 		if ((i & APP_FLUSH) == 0)
 			rte_pipeline_flush(p);
+		i++;
 	}
 #endif
 }
app/test-pipeline/runtime.c +69 -63

163 lines not on this page · raw message

Signature · 1 line
2.25.1
#8 lore raw

PATCH v3 3/3 app/test-pipeline: add dev close operation

In reply to Feifei Wang

For test-pipeline, there is dev start operation, but when thread need to exit, there is no dev close operation. This is not safe, to fix this, add dev close operation.

---
 app/test-pipeline/main.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
app/test-pipeline/main.c +19 -0
index 8633933fd9..73f6d31f82 100644
@@ -55,6 +55,7 @@ int
 main(int argc, char **argv)
 {
 	uint32_t lcore;
+	uint32_t i;
 	int ret;
 
 	/* Init EAL */
@@ -85,6 +86,24 @@ main(int argc, char **argv)
 			return -1;
 	}
 
+	/*Close ports */
+	for (i = 0; i < app.n_ports; i++) {
+		uint16_t port;
+		int ret;
+
+		port = app.ports[i];
+		printf("Closing port %d...", port);
+		ret = rte_eth_dev_stop(port);
+		if (ret != 0)
+			printf("rte_eth_dev_stop: err=%d, port=%u\n",
+					 ret, port);
+		rte_eth_dev_close(port);
+		printf("Done\n");
+	}
+
+	/* Clean up the EAL */
+	rte_eal_cleanup();
+
 	return 0;
 }
 
Signature · 1 line
2.25.1
#9 lore raw

Re: [PATCH v3 0/3] fix test-pipeline issues

In reply to Feifei Wang

Cristian, please could you review this series please?

12/09/2023 08:39, Feifei Wang:

Quoted 21 lines

For test-pipeline application, there are some problems with the normal operation of the program and security issues. These patches can fix these issues.

v3: fix SIGINT handling issue and add dev close operation

Feifei Wang (3):
app/test-pipeline: relax RSS hash requirement
app/test-pipeline: fix SIGINT handling issue
app/test-pipeline: add dev close operation

 app/test-pipeline/init.c              |  22 ++++-
 app/test-pipeline/main.c              |  33 +++++++
 app/test-pipeline/main.h              |   2 +
 app/test-pipeline/pipeline_acl.c      |   6 +-
 app/test-pipeline/pipeline_hash.c     | 110 ++++++++++-----------
 app/test-pipeline/pipeline_lpm.c      |   6 +-
 app/test-pipeline/pipeline_lpm_ipv6.c |   6 +-
 app/test-pipeline/pipeline_stub.c     |   6 +-
 app/test-pipeline/runtime.c           | 132 ++++++++++++++------------
 9 files changed, 198 insertions(+), 125 deletions(-)
#10 lore raw

RE: [PATCH v3 0/3] fix test-pipeline issues

In reply to Feifei Wang
Quoted 30 lines

-----Original Message-----
From: Feifei Wang <[email protected]>
Sent: Tuesday, September 12, 2023 7:39 AM
Cc: [email protected]; [email protected]; Feifei Wang <[email protected]>
Subject: [PATCH v3 0/3] fix test-pipeline issues

For test-pipeline application, there are some problems with the normal operation of the program and security issues. These patches can fix these issues.

v3: fix SIGINT handling issue and add dev close operation

Feifei Wang (3):
app/test-pipeline: relax RSS hash requirement
app/test-pipeline: fix SIGINT handling issue
app/test-pipeline: add dev close operation

 app/test-pipeline/init.c              |  22 ++++-
 app/test-pipeline/main.c              |  33 +++++++
 app/test-pipeline/main.h              |   2 +
 app/test-pipeline/pipeline_acl.c      |   6 +-
 app/test-pipeline/pipeline_hash.c     | 110 ++++++++++-----------
 app/test-pipeline/pipeline_lpm.c      |   6 +-
 app/test-pipeline/pipeline_lpm_ipv6.c |   6 +-
 app/test-pipeline/pipeline_stub.c     |   6 +-
 app/test-pipeline/runtime.c           | 132 ++++++++++++++------------
 9 files changed, 198 insertions(+), 125 deletions(-)
Quoted 2 lines

--
2.25.1

#11 lore raw

Re: [PATCH v3 0/3] fix test-pipeline issues

Quoted 6 lines
Quoted 5 lines

Feifei Wang (3):
app/test-pipeline: relax RSS hash requirement
app/test-pipeline: fix SIGINT handling issue
app/test-pipeline: add dev close operation

Applied with few minor cleanups.