numam-dpdk/app/test-pmd
Raja Zidane 1108c33e74 app/testpmd: fix packet segment allocation
When --mbuf-size cmdline parameter is specified, the segments to scatter
packets on are allocated sequentially from these extra memory pools
(the mbuf for the first segment is allocated from the first pool, the
second one from the second pool, and so on, if segment number is greater
then pool’s the mbuf for remaining segments will be allocated from the
last valid pool).
A bug in comparing segment index with mbuf index caused wrong mapping
of one of the segments.

Fix the comparison.

Fixes: 2befc67ff6 ("app/testpmd: add extended Rx queue setup")
Cc: stable@dpdk.org

Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2022-06-08 13:27:47 +02:00
..
5tswap.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
bpf_cmd.c app/testpmd: mark most cmdline symbols as static 2022-05-31 16:59:27 +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 flow rule with flex input link 2022-03-14 22:21:07 +01:00
cmdline_flow.c ethdev: add IPv4/IPv6 ECN header rewrite action 2022-06-02 11:58:38 +02:00
cmdline_mtr.c app/testpmd: mark most cmdline symbols as static 2022-05-31 16:59:27 +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: mark most cmdline symbols as static 2022-05-31 16:59:27 +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: register driver specific commands 2022-05-31 17:09:12 +02:00
config.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
csumonly.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
flowgen.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
icmpecho.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
ieee1588fwd.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
iofwd.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
macfwd.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02: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/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
macswap.h net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
meson.build app/testpmd: register driver specific commands 2022-05-31 17:09:12 +02:00
noisy_vnf.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
parameters.c app/testpmd: replace hardcoded min mbuf number with macro 2022-05-20 23:59:35 +02:00
rxonly.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
shared_rxq_fwd.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
testpmd.c app/testpmd: fix packet segment allocation 2022-06-08 13:27:47 +02:00
testpmd.h app/testpmd: register driver specific commands 2022-05-31 17:09:12 +02:00
txonly.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
util.c app/testpmd: fix flow transfer proxy port handling 2021-11-17 11:26:27 +01:00