Thread (11 messages) 11 messages, 4 authors, 2021-06-03

Re: [Patch bpf] selftests/bpf: Retry for EAGAIN in udp_redir_to_connected()

From: Cong Wang <hidden>
Date: 2021-05-21 21:49:40
Also in: bpf

On Thu, May 20, 2021 at 10:12 PM Andrii Nakryiko
[off-list ref] wrote:
It doesn't matter. Instead of having an endless loop, please add a
counter and limit the number of iterations to some reasonable number.
That's all, no one is asking you to do something impossible, just
prevent looping forever in some unforeseen situations and just fail
the test instead.
Well, in a non-hostile environment, the packet will not be dropped
as it is sent via a loopback, hence the loop is not endless.

"my memcg kicks in for some unknown reason" is pretty much
a hostile environment, for which we should not consider. The counter
argument is simply not to run selftests in such a hostile environment.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help