mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] selftests/net: argument value mismatch when calling verify_counters()
       [not found] <20240116214826.10754-1-mnassiri@ciena.com>
@ 2024-01-18  2:18 ` Dmitry Safonov
  0 siblings, 0 replies; only message in thread
From: Dmitry Safonov @ 2024-01-18  2:18 UTC (permalink / raw)
  To: Mohammad Nassiri
  Cc: edumazet, kuba, pabeni, shuah, 0x7f454c46, mohammad.nassiri78,
	netdev, linux-kselftest, linux-kernel

Hi Mohammad,

On 1/16/24 21:48, Mohammad Nassiri wrote:
> The end_server() function only operates in the server thread
> and always takes an accept socket instead of a listen socket as
> its input argument. To align with this, invert the boolean values
> used when calling verify_counters() within the end_server() function.
> 
> Fixes: ("3c3ead555648 selftests/net: Add TCP-AO key-management test")
> Signed-off-by: Mohammad Nassiri <mnassiri@ciena.com>
> Link: https://lore.kernel.org/all/934627c5-eebb-4626-be23-cfb134c01d1a@arista.com/


As I've written you off-list, the patch probably was not delivered to
mailing lists due to SPF check not passing. Please, fix the send-email
setup when/if you want to send more patches.

Related to this patch: I'm going to carry and resend it together with 2
more patches, as this fix made 3 selftests fail and I've looked into that.

> ---
>  tools/testing/selftests/net/tcp_ao/key-management.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/net/tcp_ao/key-management.c b/tools/testing/selftests/net/tcp_ao/key-management.c
> index c48b4970ca17..f6a9395e3cd7 100644
> --- a/tools/testing/selftests/net/tcp_ao/key-management.c
> +++ b/tools/testing/selftests/net/tcp_ao/key-management.c
> @@ -843,7 +843,7 @@ static void end_server(const char *tst_name, int sk,
>  	synchronize_threads(); /* 4: verified => closed */
>  	close(sk);
>  
> -	verify_counters(tst_name, true, false, begin, &end);
> +	verify_counters(tst_name, false, true, begin, &end);
>  	synchronize_threads(); /* 5: counters */
>  }
>  

Thanks,
            Dmitry


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-18  2:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20240116214826.10754-1-mnassiri@ciena.com>
2024-01-18  2:18 ` [PATCH] selftests/net: argument value mismatch when calling verify_counters() Dmitry Safonov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®