DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/ipsec-secgw: fix usage print
@ 2018-04-16 12:23 Anoob Joseph
  2018-04-17  9:02 ` Radu Nicolau
  0 siblings, 1 reply; 3+ messages in thread
From: Anoob Joseph @ 2018-04-16 12:23 UTC (permalink / raw)
  To: Akhil Goyal, Declan Doherty, Radu Nicolau
  Cc: Anoob Joseph, Jerin Jacob, Narayana Prasad, dev

The usage print was not updated when jumbo frames & crypto_dev mask
support was added. Fixing that. Also, the optional arguments were not
properly highlighted in the usage header. This is also fixed.

General cleanup of the usage print was also done to make it look more
cleaner and similar to what is existing in other applications like
l3fwd.

Fixes: bbabfe6e4ee4 ("examples/ipsec_secgw: support jumbo frames")
Fixes: 2c68fe791538 ("examples/ipsec-secgw: add cryptodev mask option")
Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application")

Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
---
 examples/ipsec-secgw/ipsec-secgw.c | 36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)

diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index 18330fe..1494b02 100644
--- a/examples/ipsec-secgw/ipsec-secgw.c
+++ b/examples/ipsec-secgw/ipsec-secgw.c
@@ -945,20 +945,28 @@ init_lcore_rx_queues(void)
 static void
 print_usage(const char *prgname)
 {
-	printf("%s [EAL options] -- -p PORTMASK -P -u PORTMASK"
-		"  --"CMD_LINE_OPT_CONFIG" (port,queue,lcore)[,(port,queue,lcore]"
-		" --single-sa SAIDX -f CONFIG_FILE\n"
-		"  -p PORTMASK: hexadecimal bitmask of ports to configure\n"
-		"  -P : enable promiscuous mode\n"
-		"  -u PORTMASK: hexadecimal bitmask of unprotected ports\n"
-		"  -j FRAMESIZE: jumbo frame maximum size\n"
-		"  --"CMD_LINE_OPT_CONFIG": (port,queue,lcore): "
-		"rx queues configuration\n"
-		"  --single-sa SAIDX: use single SA index for outbound, "
-		"bypassing the SP\n"
-		"  --cryptodev_mask MASK: hexadecimal bitmask of the "
-		"crypto devices to configure\n"
-		"  -f CONFIG_FILE: Configuration file path\n",
+	fprintf(stderr, "%s [EAL options] --"
+		" -p PORTMASK"
+		" [-P]"
+		" [-u PORTMASK]"
+		" [-j FRAMESIZE]"
+		" -f CONFIG_FILE"
+		" --config (port,queue,lcore)[,(port,queue,lcore)]"
+		" [--single-sa SAIDX]"
+		" [--cryptodev_mask MASK]"
+		"\n\n"
+		"  -p PORTMASK: Hexadecimal bitmask of ports to configure\n"
+		"  -P : Enable promiscuous mode\n"
+		"  -u PORTMASK: Hexadecimal bitmask of unprotected ports\n"
+		"  -j FRAMESIZE: Enable jumbo frame with 'FRAMESIZE' as maximum\n"
+		"                packet size\n"
+		"  -f CONFIG_FILE: Configuration file\n"
+		"  --config (port,queue,lcore): Rx queue configuration\n"
+		"  --single-sa SAIDX: Use single SA index for outbound traffic,\n"
+		"                     bypassing the SP\n"
+		"  --cryptodev_mask MASK: Hexadecimal bitmask of the crypto\n"
+		"                         devices to configure\n"
+		"\n",
 		prgname);
 }
 
-- 
2.7.4

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

* Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix usage print
  2018-04-16 12:23 [dpdk-dev] [PATCH] examples/ipsec-secgw: fix usage print Anoob Joseph
@ 2018-04-17  9:02 ` Radu Nicolau
  2018-04-18 10:25   ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 3+ messages in thread
From: Radu Nicolau @ 2018-04-17  9:02 UTC (permalink / raw)
  To: Anoob Joseph, Akhil Goyal, Declan Doherty
  Cc: Jerin Jacob, Narayana Prasad, dev


On 4/16/2018 1:23 PM, Anoob Joseph wrote:
> The usage print was not updated when jumbo frames & crypto_dev mask
> support was added. Fixing that. Also, the optional arguments were not
> properly highlighted in the usage header. This is also fixed.
>
> General cleanup of the usage print was also done to make it look more
> cleaner and similar to what is existing in other applications like
> l3fwd.
>
> Fixes: bbabfe6e4ee4 ("examples/ipsec_secgw: support jumbo frames")
> Fixes: 2c68fe791538 ("examples/ipsec-secgw: add cryptodev mask option")
> Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application")
>
> Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
> ---
>
Acked-by: Radu Nicolau <radu.nicolau@intel.com> 
<mailto:radu.nicolau@intel.com>

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

* Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix usage print
  2018-04-17  9:02 ` Radu Nicolau
@ 2018-04-18 10:25   ` De Lara Guarch, Pablo
  0 siblings, 0 replies; 3+ messages in thread
From: De Lara Guarch, Pablo @ 2018-04-18 10:25 UTC (permalink / raw)
  To: Nicolau, Radu, Anoob Joseph, Akhil Goyal, Doherty, Declan
  Cc: Jerin Jacob, Narayana Prasad, dev, stable



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Radu Nicolau
> Sent: Tuesday, April 17, 2018 10:02 AM
> To: Anoob Joseph <anoob.joseph@caviumnetworks.com>; Akhil Goyal
> <akhil.goyal@nxp.com>; Doherty, Declan <declan.doherty@intel.com>
> Cc: Jerin Jacob <jerin.jacob@caviumnetworks.com>; Narayana Prasad
> <narayanaprasad.athreya@caviumnetworks.com>; dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix usage print
> 
> 
> On 4/16/2018 1:23 PM, Anoob Joseph wrote:
> > The usage print was not updated when jumbo frames & crypto_dev mask
> > support was added. Fixing that. Also, the optional arguments were not
> > properly highlighted in the usage header. This is also fixed.
> >
> > General cleanup of the usage print was also done to make it look more
> > cleaner and similar to what is existing in other applications like
> > l3fwd.
> >
> > Fixes: bbabfe6e4ee4 ("examples/ipsec_secgw: support jumbo frames")
> > Fixes: 2c68fe791538 ("examples/ipsec-secgw: add cryptodev mask
> > option")
> > Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample
> > application")
> >
> > Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
> > ---
> >
> Acked-by: Radu Nicolau <radu.nicolau@intel.com>
> <mailto:radu.nicolau@intel.com>

Cc'ing stable list.

Applied to dpdk-next-crypto.
Thanks,

Pablo


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

end of thread, other threads:[~2018-04-18 10:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-16 12:23 [dpdk-dev] [PATCH] examples/ipsec-secgw: fix usage print Anoob Joseph
2018-04-17  9:02 ` Radu Nicolau
2018-04-18 10:25   ` De Lara Guarch, Pablo

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).