[dpdk-dev] [PATCH] fix l2fwd --no-mac-updating not working issue

RickZhong winsome8282 at 163.com
Mon Jun 28 11:08:35 CEST 2021


The original disable mac updating codes were removed by mistake.

Signed-off-by: RickZhong <winsome8282 at 163.com>
---
 examples/l2fwd/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c
index 32d405e65..69d0087dc 100644
--- a/examples/l2fwd/main.c
+++ b/examples/l2fwd/main.c
@@ -491,6 +491,10 @@ l2fwd_parse_args(int argc, char **argv)
 			timer_period = timer_secs;
 			break;
 
+		/* no-mac-updating */
+		case 0:
+			break;
+
 		/* long options */
 		case CMD_LINE_OPT_PORTMAP_NUM:
 			ret = l2fwd_parse_port_pair_config(optarg);
-- 
2.27.0




More information about the dev mailing list