[dpdk-dev] [PATCH] examples/l3fwd: change mq-mode on single queue devices

Bruce Richardson bruce.richardson at intel.com
Wed May 12 18:32:06 CEST 2021


On Mon, May 10, 2021 at 06:53:19PM +0200, Heinrich Kuhn wrote:
> From: "Chaoyong.He" <chaoyong.he at corigine.com>
> 
> Set the Rx multi-queue mode to NONE when configuring a port that is
> associated with hardware that only supports a single Rx queue.
> 
> Signed-off-by: Chaoyong He <chaoyong.he at corigine.com>
> Signed-off-by: Heinrich Kuhn <heinrich.kuhn at netronome.com>
> Signed-off-by: Simon Horman <simon.horman at netronome.com>
> ---
>  examples/l3fwd/main.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c
> index bb49e5faf..87b638ac0 100644
> --- a/examples/l3fwd/main.c
> +++ b/examples/l3fwd/main.c
> @@ -953,6 +953,10 @@ l3fwd_poll_resource_setup(void)
>  
>  		local_port_conf.rx_adv_conf.rss_conf.rss_hf &=
>  			dev_info.flow_type_rss_offloads;
> +
> +		if (dev_info.max_rx_queues == 1)
> +			local_port_conf.rxmode.mq_mode = ETH_MQ_RX_NONE;
> +

While it makes sense to do this when the port only supports a single queue,
would it not also make sense to do this when the requested queues are 1
too?

Adding some lookup library maintainers on CC - I assume that the RSS value
is not actually used for lookup anywhere in l3fwd.

/Bruce


More information about the dev mailing list