]> git.droids-corp.org - dpdk.git/commit
app/testpmd: do not poll stopped queues
authorDmitry Kozlyuk <dkozlyuk@nvidia.com>
Mon, 7 Mar 2022 12:53:50 +0000 (14:53 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 25 May 2022 15:25:22 +0000 (17:25 +0200)
commit3c4426db54fc24e7a97f2b4000a0a4f30897a104
tree1caa72550f1736c55291f8cc7886949b8aad8239
parentf7352c176bbf131728445680ee08961a67cc09a6
app/testpmd: do not poll stopped queues

Calling Rx/Tx functions on a stopped queue is not supported.
Do not run packet forwarding for streams that use stopped queues.

Each stream has a read-only "disabled" field,
so that lcore function can skip such streams.
Forwarding engines can set this field
using a new "stream_init" callback function
by checking relevant queue states,
which are stored along with queue configurations
(not all PMDs implement rte_eth_rx/tx_queue_info_get()
to query the state from there).

Fixes: 5f4ec54f1d16 ("testpmd: queue start and stop")
Cc: stable@dpdk.org
Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
16 files changed:
app/test-pmd/5tswap.c
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/csumonly.c
app/test-pmd/flowgen.c
app/test-pmd/icmpecho.c
app/test-pmd/ieee1588fwd.c
app/test-pmd/iofwd.c
app/test-pmd/macfwd.c
app/test-pmd/macswap.c
app/test-pmd/noisy_vnf.c
app/test-pmd/rxonly.c
app/test-pmd/shared_rxq_fwd.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
app/test-pmd/txonly.c