[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+FuTSeWU7Tfg1SKotM4+r1NH+CH=Xei3Ho209xYm+DvuAneHw@mail.gmail.com>
Date: Fri, 15 Nov 2019 09:07:09 -0500
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: Jiri Benc <jbenc@...hat.com>
Cc: bpf <bpf@...r.kernel.org>,
Network Development <netdev@...r.kernel.org>
Subject: Re: [PATCH bpf] selftests: bpf: fix test_tc_tunnel hanging
On Fri, Nov 15, 2019 at 7:43 AM Jiri Benc <jbenc@...hat.com> wrote:
>
> When run_kselftests.sh is run, it hangs after test_tc_tunnel.sh. The reason
> is test_tc_tunnel.sh ensures the server ('nc -l') is run all the time,
> starting it again every time it is expected to terminate. The exception is
> the final client_connect: the server is not started anymore, which ensures
> no process is kept running after the test is finished.
>
> For a sit test, though, the script is terminated prematurely without the
> final client_connect and the 'nc' process keeps running. This in turn causes
> the run_one function in kselftest/runner.sh to hang forever, waiting for the
> runaway process to finish.
>
> Ensure a remaining server is terminated on cleanup.
>
> Fixes: f6ad6accaa9d ("selftests/bpf: expand test_tc_tunnel with SIT encap")
> Cc: Willem de Bruijn <willemb@...gle.com>
> Signed-off-by: Jiri Benc <jbenc@...hat.com>
Acked-by: Willem de Bruijn <willemb@...gle.com>
Yes, I had missed that the server gets restarted even though the SIT
test has to bail instead of run the last, BPF decap, test.
Thanks Jiri.
Powered by blists - more mailing lists