[dpdk-dev] [PATCH v4 7/7] examples/vhost_crypto: enhance getopt_long usage

Zhang, Roy Fan roy.fan.zhang at intel.com
Fri Feb 5 17:21:18 CET 2021


> -----Original Message-----
> From: Ibtisam Tariq <ibtisam.tariq at emumba.com>
> Sent: Thursday, February 4, 2021 7:34 AM
> To: maxime.coquelin at redhat.com; Xia, Chenbo <chenbo.xia at intel.com>;
> Dumitrescu, Cristian <cristian.dumitrescu at intel.com>; Singh, Jasvinder
> <jasvinder.singh at intel.com>; Mcnamara, John
> <john.mcnamara at intel.com>; Pattan, Reshma <reshma.pattan at intel.com>;
> Ananyev, Konstantin <konstantin.ananyev at intel.com>; Kovacevic, Marko
> <marko.kovacevic at intel.com>
> Cc: dev at dpdk.org; Ibtisam Tariq <ibtisam.tariq at emumba.com>; Zhang, Roy
> Fan <roy.fan.zhang at intel.com>
> Subject: [PATCH v4 7/7] examples/vhost_crypto: enhance getopt_long usage
> 
> Instead of using getopt_long return value, strcmp was used to
> compare the input parameters with the struct option array. This
> patch get rid of all those strcmp by directly binding each longopt
> with an int enum. This is to improve readability and consistency in
> all examples.
> 
> Bugzilla ID: 238
> Cc: roy.fan.zhang at intel.com
> 
> Reported-by: David Marchand <david.marchand at redhat.com>
> Signed-off-by: Ibtisam Tariq <ibtisam.tariq at emumba.com>

Acked-by: Fan Zhang <roy.fan.zhang at intel.com>

Thank you very much!


More information about the dev mailing list