[PATCH] app/testpmd: support retrying device stop

Dariusz Sosnowski dsosnowski at nvidia.com
Fri Jul 5 14:01:11 CEST 2024


> -----Original Message-----
> From: Ferruh Yigit <ferruh.yigit at amd.com>
> Sent: Friday, July 5, 2024 13:29
> To: Stephen Hemminger <stephen at networkplumber.org>; Maayan Kashani
> <mkashani at nvidia.com>
> Cc: dev at dpdk.org; Dariusz Sosnowski <dsosnowski at nvidia.com>; Raslan
> Darawsheh <rasland at nvidia.com>; Aman Singh <aman.deep.singh at intel.com>;
> Yuying Zhang <yuying.zhang at intel.com>
> Subject: Re: [PATCH] app/testpmd: support retrying device stop
> 
> On 6/3/2024 6:09 PM, Stephen Hemminger wrote:
> > On Sun, 2 Jun 2024 13:30:35 +0300
> > Maayan Kashani <mkashani at nvidia.com> wrote:
> >
> >> From: Dariusz Sosnowski <dsosnowski at nvidia.com>
> >>
> >> In some cases rte_eth_dev_stop() can fail with EBUSY error code
> >> meaning that port cannot be stopped, because of other resources
> >> referencing this port and port must be stopped again after these resources are
> freed.
> >>
> >> This patch adds handling of EBUSY error code on port stop to testpmd.
> >>
> >> Signed-off-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
> >
> > What causes EBUSY. Seems like a driver bug or a test scenario problem.
> > You can't expect every DPDK application to retry.
> >
> 
> 'rte_eth_dev_stop()' returning EBUSY anticipates this kind of usage already.
> 
> But I also agree we should avoid propagating driver issues to the application, that
> is why it is better to clarify motivation of this patch, why specific driver returns
> EBUSY on stop.

Agreed regarding not propagating it to application.

Currently mlx5 PMD can return EBUSY because of a limitation in the PMD,
regarding ordering of start/stop operations of representor ports
(http://git.dpdk.org/dpdk/tree/drivers/net/mlx5/mlx5_trigger.c#n1417).
We should eventually resolve that limitation in PMD.

I think we can drop this patch.

Best regards,
Dariusz Sosnowski



More information about the dev mailing list