numam-dpdk/app
Gregory Etelson ea1da434c0 app/testpmd: fix hexadecimal parser with odd length
Current hex string parser assumes input has even characters number.
The parser fails input string with odd length.

The patch parses hex strings with even and odd length.
Parse result of an input with odd length will match result of
even length input, that has `0` as MSB, following by the original
sequence.
For example:
"0x1" results in *dst={0x01, 0x00}, *size=1
"0xabc" results in *dst={0x0a, 0xbc, 0x00}, *size=2

Fixes: 169a9fed1f ("app/testpmd: fix hex string parser support for flow API")
Cc: stable@dpdk.org

Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Reviewed-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
2021-11-24 17:34:38 +01:00
..
dumpcap build: cleanup libpcap dependent components 2021-11-10 11:42:34 +01:00
pdump devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
proc-info build: make metrics libraries optional 2021-11-17 12:48:33 +01:00
test bus: fix device iterator match from arguments 2021-11-24 15:11:42 +01:00
test-acl devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
test-bbdev app/bbdev: use compiler atomics for shared data sync 2021-11-17 11:07:06 +01:00
test-cmdline devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
test-compress-perf app/compress: use compiler atomic builtins for display sync 2021-11-17 11:07:06 +01:00
test-crypto-perf app/crypto-perf: increase segment size for IPsec 2021-11-23 20:48:04 +01:00
test-eventdev app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
test-fib fib: add RIB extension size parameter 2021-11-04 12:38:03 +01:00
test-flow-perf app/flow-perf: fix parsing of invalid option 2021-11-17 10:47:55 +01:00
test-gpudev app/gpudev: improve output 2021-11-16 21:04:33 +01:00
test-pipeline app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
test-pmd app/testpmd: fix hexadecimal parser with odd length 2021-11-24 17:34:38 +01:00
test-regex devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
test-sad devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
meson.build build: make pdump optional 2021-11-17 12:49:19 +01:00