Re: [dpdk-dev] [PATCH 1/7] examples/fips_validation: enhance getopt_long usage

2020-12-07 Thread David Marchand
On Tue, Nov 24, 2020 at 1:33 PM Ibtisam Tariq wrote: > > 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 reada

[dpdk-dev] [PATCH 1/7] examples/fips_validation: enhance getopt_long usage

2020-11-24 Thread Ibtisam Tariq
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: ma

[dpdk-dev] [PATCH 1/7] examples/fips_validation: enhance getopt_long usage

2020-11-11 Thread Ibtisam Tariq
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: ma