numam-dpdk/app/test-pmd
Sunil Kumar Kori b314a4a664 app/testpmd: fix access to DSCP table entries
During parsing of DSCP entries, memory is allocated and assigned
to *dscp_table. Later on, same memory is accessed using
*dscp_table[i++].

Due to higher precedence for array subscript, dscp_table[i++] will
be executed first which actually does not point to the same memory
which was allocated previously for DSCP table entries.

Fixes: 459463ae6c ("app/testpmd: fix memory allocation for DSCP table")
Cc: stable@dpdk.org

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2021-10-19 18:10:28 +02: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
cmdline_flow.c app/testpmd: fix hex string parser in flow commands 2021-10-14 14:34:31 +02: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 ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
config.c ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
csumonly.c net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
flowgen.c app/testpmd: update forward engine beginning 2021-10-08 18:57:48 +02:00
icmpecho.c net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
ieee1588fwd.c app/testpmd: update forward engine beginning 2021-10-08 18:57:48 +02:00
iofwd.c app/testpmd: add record-burst-stats runtime config 2020-09-18 18:55:08 +02:00
macfwd.c net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
macswap_common.h net: add rte prefix to IP structure 2019-05-24 13:34:46 +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 build: remove deprecated cpuflag macros 2020-09-25 11:13:57 +02:00
macswap.h net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
meson.build app: reduce indentation in build files 2021-04-21 14:04:09 +02:00
noisy_vnf.c app/testpmd: update forward engine beginning 2021-10-08 18:57:48 +02:00
parameters.c ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
rxonly.c app/testpmd: add record-burst-stats runtime config 2020-09-18 18:55:08 +02:00
testpmd.c ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
testpmd.h ethdev: remove jumbo offload flag 2021-10-18 19:20:21 +02:00
txonly.c app/testpmd: fix txonly forwarding 2021-10-08 18:57:48 +02:00
util.c app/testpmd: fix RSS hash offload display 2021-10-15 13:27:05 +02:00