numam-dpdk/app/test-pmd
Viacheslav Ovsiienko 3f47c017ee app/testpmd: fix segment number check
The --txpkts command line parameter was silently ignored due to
application was unable to check the Tx queue ring sizes for non
configured ports.

The "set txpkts <len0[,len1]*>" was also rejected if there
was some stopped or /unconfigured port.

This provides the following:

  - If fails to get ring size from the port, this can be because port is
    not initialized yet, ignore the check and just be sure segment size
    won't cause an out of bound access. The port descriptor check will
    be done during Tx setup.

  - The capability to send single packet is supposed to be very basic
    and always supported, the setting segment number to 1 is always
    allowed, no check performed

  - At the moment of Tx queue setup the descriptor number is checked
    against configured segment number

Bugzilla ID: 584
Fixes: 8dae835d88 ("app/testpmd: remove restriction on Tx segments set")
Cc: stable@dpdk.org

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
2021-04-27 13:41:25 +02:00
..
5tswap.c net: add function to calculate IPv4 header length 2020-10-16 19:48:17 +02:00
bpf_cmd.c app/testpmd: fix build with musl 2021-03-23 08:41:05 +01:00
bpf_cmd.h build: replace use of old build macros 2020-10-19 22:15:44 +02:00
cmdline_flow.c app/testpmd: support policy actions per color 2021-04-21 12:22:18 +02:00
cmdline_mtr.c app/testpmd: support policy actions per color 2021-04-21 12:22:18 +02:00
cmdline_mtr.h app/testpmd: support policy actions per color 2021-04-21 12:22:18 +02:00
cmdline_tm.c cmdline: avoid name clash with Windows system types 2020-11-05 17:49:00 +01: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 segment number check 2021-04-27 13:41:25 +02:00
config.c app/testpmd: fix segment number check 2021-04-27 13:41:25 +02:00
csumonly.c mbuf: rename outer IP checksum macro 2021-03-02 10:57:28 +01:00
flowgen.c app/testpmd: support sending cloned packets in flowgen 2021-01-29 18:16:12 +01:00
icmpecho.c app/testpmd: add record-burst-stats runtime config 2020-09-18 18:55:08 +02:00
ieee1588fwd.c net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
iofwd.c app/testpmd: add record-burst-stats runtime config 2020-09-18 18:55:08 +02:00
macfwd.c app/testpmd: add record-burst-stats runtime config 2020-09-18 18:55:08 +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: add rte prefix to ether functions 2019-05-24 13:34:45 +02:00
meson.build app: reduce indentation in build files 2021-04-21 14:04:09 +02:00
noisy_vnf.c app/testpmd: enable burst stats for noisy VNF mode 2020-09-18 18:55:08 +02:00
parameters.c app/testpmd: fix usage text 2021-04-09 14:31:43 +02:00
rxonly.c app/testpmd: add record-burst-stats runtime config 2020-09-18 18:55:08 +02:00
testpmd.c devargs: unify scratch buffer storage 2021-04-14 22:25:08 +02:00
testpmd.h app/testpmd: support policy actions per color 2021-04-21 12:22:18 +02:00
txonly.c app/testpmd: fix packet header in txonly mode 2020-09-30 19:19:13 +02:00
util.c app/testpmd: fix packets dump overlapping 2021-01-29 18:16:07 +01:00