numam-dpdk/app/test-pmd
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
..
5tswap.c net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
bpf_cmd.c app/testpmd: send failure logs to stderr 2021-07-24 15:12:57 +02:00
bpf_cmd.h build: replace use of old build macros 2020-10-19 22:15:44 +02:00
cmd_flex_item.c app/testpmd: fix flex item flush 2021-11-05 22:19:38 +01:00
cmdline_flow.c app/testpmd: fix hexadecimal parser with odd length 2021-11-24 17:34:38 +01:00
cmdline_mtr.c app/testpmd: fix access to DSCP table entries 2021-10-19 18:10:28 +02:00
cmdline_mtr.h app/testpmd: support policy actions per color 2021-04-21 12:22:18 +02:00
cmdline_tm.c app/testpmd: send failure logs to stderr 2021-07-24 15:12:57 +02:00
cmdline_tm.h app/testpmd: add TM command for non-leaf and packet mode 2020-09-18 18:55:10 +02:00
cmdline.c app/testpmd: fix flow transfer proxy port handling 2021-11-17 11:26:27 +01:00
config.c app/testpmd: fix tunnel offload validation 2021-11-17 13:12:56 +01:00
csumonly.c build: make GRO/GSO libraries optional 2021-11-17 12:48:22 +01:00
flowgen.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
icmpecho.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
ieee1588fwd.c mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
iofwd.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
macfwd.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
macswap_common.h mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
macswap_neon.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
macswap_sse.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
macswap.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
macswap.h net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
meson.build build: make metrics libraries optional 2021-11-17 12:48:33 +01:00
noisy_vnf.c app/testpmd: update forward engine beginning 2021-10-08 18:57:48 +02:00
parameters.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
rxonly.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
shared_rxq_fwd.c app/testpmd: add forwarding engine for shared Rx queue 2021-10-22 00:09:19 +02:00
testpmd.c app/testpmd: fix flow transfer proxy port handling 2021-11-17 11:26:27 +01:00
testpmd.h app/testpmd: fix flow transfer proxy port handling 2021-11-17 11:26:27 +01:00
txonly.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
util.c app/testpmd: fix flow transfer proxy port handling 2021-11-17 11:26:27 +01:00