[PATCH] app/testpmd: fix secondary process not forwarding
Stephen Hemminger
stephen at networkplumber.org
Fri Dec 30 18:23:31 CET 2022
On Fri, 30 Dec 2022 07:55:53 +0000
Shiyang He <shiyangx.he at intel.com> wrote:
> Under multi-process scenario, the secondary process gets queue state
> from the wrong location (the global variable 'ports'). Therefore, the
> secondary process can not forward since "stream_init" is not called.
>
> This commit fixes the issue by calling 'rte_eth_rx/tx_queue_info_get'
> to get queue state from shared memory.
>
> Fixes: a78040c990cb ("app/testpmd: update forward engine beginning")
> Cc: stable at dpdk.org
>
> Signed-off-by: Shiyang He <shiyangx.he at intel.com>
Would it be possible to fix this the initialization
of ports variable, rather than doing a per-state fixup here?
More information about the stable
mailing list