[PATCH] examples/l3fwd: relax the RSS/Offload requirement

Stephen Hemminger stephen at networkplumber.org
Thu May 11 17:39:12 CEST 2023


On Thu, 11 May 2023 09:33:35 +0000
Trevor Tao <Trevor.Tao at arm.com> wrote:

> +               /* relax the rx rss requirement */
> +               if (dev_info.max_rx_queues == 1 || !local_port_conf.rx_adv_conf.rss_conf.rss_hf) {
> +                       printf("warning: modified the rx mq_mode to RTE_ETH_MQ_RX_NONE base on"
> +                               " device capability\n");
>                         local_port_conf.rxmode.mq_mode = RTE_ETH_MQ_RX_NONE;
> +               }

There is no point in doing RSS if only a single queue.
Therefore remove the !local_port.conf portion of the expression.

And since this is normal, no printf is needed.


More information about the dev mailing list