[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DM6PR12MB3066EB87CEE0F9627F3C9592CBCB9@DM6PR12MB3066.namprd12.prod.outlook.com>
Date: Thu, 12 May 2022 15:17:55 +0000
From: Amit Cohen <amcohen@...dia.com>
To: Shuah Khan <skhan@...uxfoundation.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"edumazet@...gle.com" <edumazet@...gle.com>,
"kuba@...nel.org" <kuba@...nel.org>,
"pabeni@...hat.com" <pabeni@...hat.com>,
"shuah@...nel.org" <shuah@...nel.org>, mlxsw <mlxsw@...dia.com>,
"dsahern@...nel.org" <dsahern@...nel.org>
Subject: RE: [PATCH net-next] selftests: fib_nexthops: Make the test more
robust
> -----Original Message-----
> From: Shuah Khan <skhan@...uxfoundation.org>
> Sent: Thursday, May 12, 2022 5:28 PM
> To: Amit Cohen <amcohen@...dia.com>; netdev@...r.kernel.org
> Cc: davem@...emloft.net; edumazet@...gle.com; kuba@...nel.org; pabeni@...hat.com; shuah@...nel.org; mlxsw
> <mlxsw@...dia.com>; Shuah Khan <skhan@...uxfoundation.org>
> Subject: Re: [PATCH net-next] selftests: fib_nexthops: Make the test more robust
>
> On 5/12/22 7:12 AM, Amit Cohen wrote:
> > Rarely some of the test cases fail. Make the test more robust by increasing
> > the timeout of ping commands to 5 seconds.
> >
>
> Can you explain why test cases fail?
The failures are probably caused due to slow forwarding performance.
You can see similar commit - b6a4fd680042 ("selftests: forwarding: Make ping timeout configurable").
>
> > Signed-off-by: Amit Cohen <amcohen@...dia.com>
> > ---
> > tools/testing/selftests/net/fib_nexthops.sh | 48 ++++++++++-----------
> > 1 file changed, 24 insertions(+), 24 deletions(-)
> >
> > diff --git a/tools/testing/selftests/net/fib_nexthops.sh b/tools/testing/selftests/net/fib_nexthops.sh
> > index b3bf5319bb0e..a99ee3fb2e13 100755
> > --- a/tools/testing/selftests/net/fib_nexthops.sh
> > +++ b/tools/testing/selftests/net/fib_nexthops.sh
> > @@ -882,13 +882,13 @@ ipv6_fcnal_runtime()
> > log_test $? 0 "Route delete"
> >
> > run_cmd "$IP ro add 2001:db8:101::1/128 nhid 81"
> > - run_cmd "ip netns exec me ping -c1 -w1 2001:db8:101::1"
> > + run_cmd "ip netns exec me ping -c1 -w5 2001:db8:101::1"
> > log_test $? 0 "Ping with nexthop"
> >
> Looks like the change uses "-w deadline" - "-W timeout" might
> be a better choice if ping fails with no response?
We usually use "-w" in ping commands in selftests, but I can change it if you prefer "-W".
>
> thanks,
> -- Shuah
Powered by blists - more mailing lists