[dpdk-dev] [PATCH] net/mlx5: fix rss reta is reset when device is started

Ori Kam orika at nvidia.com
Thu Sep 10 14:17:07 CEST 2020



> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Maxime Leroy
> 
> Hi Raslan,
> 
> Any comment/review on the fix ?
> 
> Regards,
> 
> Maxime
> 
> On Thu, Jul 16, 2020 at 12:43 PM Maxime Leroy <maxime.leroy at 6wind.com>
> wrote:
> >
> > The following sequences was working fine on mlx5:
> >    rte_eth_dev_configure(portid, ...);
> >
> >    for (queueid = 0; queueid < nb_txq; queueid++)
> >       rte_eth_tx_queue_setup(portid, queueid, ...);
> >
> >    for (queueid = 0; queueid < nb_rxq; queueid++)
> >       rte_eth_rx_queue_setup(portid, queueid, ...);
> >
> >   // use a custom reta configuration
> >   rte_eth_dev_rss_reta_update(portid, reta_conf, reta_size);
> >   rte_eth_dev_start(portid);
> >
> > We were able to configure a custom reta before starting the port.
> >
> > The commit "net/mlx5: support RSS on hairpin" breaks this logic by
> > moving the code initializing the RSS reta from rte_eth_dev_configure
> > into rte_eth_dev_start.
> >
> > To fix the issue, the skip_default_rss_reta is always set to 1 in
> > rte_eth_dev_rss_reta to avoid reconfigure the rss reta when the device
> > is started.
> >
> > Fixes: 63bd16292c3a ("net/mlx5: support RSS on hairpin")
> > Signed-off-by: Maxime Leroy <maxime.leroy at 6wind.com>
> > ---

Acked-by: Ori Kam <orika at nvidia.com>
Thanks,
Ori


More information about the dev mailing list