[PATCH v3 0/2] app/testpmd: skip stopped queues when forwarding
Dmitry Kozlyuk
dkozlyuk at nvidia.com
Mon Mar 7 13:53:49 CET 2022
It was unspecified what happens of a stopped queue is polled.
Declare that polling is prohibited and modify testpmd to follow this.
Rationale is described in the commit log; it follows the discussion:
http://inbox.dpdk.org/dev/BL1PR12MB594551A71273709E1C04A8BAB9309@BL1PR12MB5945.namprd12.prod.outlook.com/
v3:
* Revert to storing queue status in testpmd to handle PMDs
that don't implement rte_eth_rx/tx_queue_info_get()
(Daxue Gao).
* Add missed "macswap" support.
v2:
* Do not try to change forwarding mode partially,
disable individual flows that need stopped queues instead.
* Do not store queue status in testpmd,
query it as needed instead.
Dmitry Kozlyuk (2):
app/testpmd: do not poll stopped queues
ethdev: prohibit polling of a stopped queue
app/test-pmd/5tswap.c | 13 +++++
app/test-pmd/cmdline.c | 45 +++++++++-------
app/test-pmd/config.c | 8 +--
app/test-pmd/csumonly.c | 13 +++++
app/test-pmd/flowgen.c | 13 +++++
app/test-pmd/icmpecho.c | 13 +++++
app/test-pmd/ieee1588fwd.c | 13 +++++
app/test-pmd/iofwd.c | 13 +++++
app/test-pmd/macfwd.c | 13 +++++
app/test-pmd/macswap.c | 13 +++++
app/test-pmd/noisy_vnf.c | 13 +++++
app/test-pmd/rxonly.c | 8 +++
app/test-pmd/shared_rxq_fwd.c | 8 +++
app/test-pmd/testpmd.c | 96 +++++++++++++++++++++++------------
app/test-pmd/testpmd.h | 19 ++++++-
app/test-pmd/txonly.c | 8 +++
lib/ethdev/rte_ethdev.h | 2 +-
17 files changed, 254 insertions(+), 57 deletions(-)
--
2.25.1
More information about the dev
mailing list