DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] pktgen: Fix setting user pattern from cli
@ 2021-11-30 15:02 Josh Knight
  0 siblings, 0 replies; only message in thread
From: Josh Knight @ 2021-11-30 15:02 UTC (permalink / raw)
  To: keith.wiles; +Cc: dev, Josh Knight

When setting the user pattern from the pktgen cli, it would always be
incorrectly set to the string 'pattern' regardless of input.

This can be demonstrated simply by setting a pattern

    set 0 pattern user
    set 0 user pattern asdfasdf

Signed-off-by: Josh Knight <joshua.knight@netscout.com>
---
 app/cli-functions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/cli-functions.c b/app/cli-functions.c
index 4293444..41d354b 100644
--- a/app/cli-functions.c
+++ b/app/cli-functions.c
@@ -652,7 +652,7 @@ set_cmd(int argc, char **argv)
 			break;
 		case 25:
 			foreach_port(portlist,
-				 pattern_set_user_pattern(info, argv[3]));
+				 pattern_set_user_pattern(info, argv[4]));
 			break;
 		case 30:
 			p = strchr(argv[4], '/');
-- 
2.30.1 (Apple Git-130)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-30 15:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 15:02 [PATCH] pktgen: Fix setting user pattern from cli Josh Knight

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).