examples/performance-thread: enhance getopt_long usage
examples/performance-thread: 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

Reported-by: David Marchand <f28529695cfa9e3e1eb84e7072aa626af4abb18e@redhat.com>
Signed-off-by: Ibtisam Tariq <0da07aab2909c1677eb70e86cb583780deb55e50@emumba.com>
Reviewed-by: David Marchand <f28529695cfa9e3e1eb84e7072aa626af4abb18e@redhat.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk