[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250218132122.278a9b00@kernel.org>
Date: Tue, 18 Feb 2025 13:21:22 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Stanislav Fomichev <stfomichev@...il.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, andrew+netdev@...n.ch, horms@...nel.org,
shuah@...nel.org, hawk@...nel.org, petrm@...dia.com, jdamato@...tly.com,
willemdebruijn.kernel@...il.com
Subject: Re: [PATCH net-next 2/4] selftests: drv-net: add a way to wait for
a local process
On Tue, 18 Feb 2025 13:10:14 -0800 Stanislav Fomichev wrote:
> > + env_str = getenv("KSFT_READY_FD");
> > + if (!env_str)
> > + return;
> > +
> > + fd = atoi(env_str);
> > + if (!fd)
> > + return;
>
> optional nit: should these fail with error() instead of silent return?
> Should guarantee that the caller is doing everything correctly.
> (passing wait_init vs waiting for a port)
My thinking was that you may want to run the helper manually during
development and then the env variable won't be set.
Given that we currently don't expose the stdout/stderr if wait fails
adding a print seemed a little performative.. We need to go back
and provide better support for debug (/verbose output) at some stage.
Powered by blists - more mailing lists