John Fastabend 5fa2ca7c4a bpf, tcp: correctly handle DONT_WAIT flags and timeo == 0
The tcp_bpf_wait_data() routine needs to check timeo != 0 before
calling sk_wait_event() otherwise we may see unexpected stalls
on receiver.

Arika did all the leg work here I just formatted, posted and ran
a few tests.

Fixes: 604326b41a6fb ("bpf, sockmap: convert to generic sk_msg interface")
Reported-by: Arika Chen <eaglesora@gmail.com>
Suggested-by: Arika Chen <eaglesora@gmail.com>
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2019-05-16 01:36:13 +02:00
..
2019-05-05 10:25:52 -07:00
2019-04-21 10:37:26 -07:00
2019-04-27 09:07:04 -07:00
2019-04-10 12:20:46 -07:00
2019-05-07 09:18:12 -07:00
2018-11-10 16:55:11 -08:00
2019-03-26 08:35:36 +01:00
2019-05-09 09:02:46 -07:00
2019-05-09 14:33:15 -07:00
2019-04-19 14:07:40 -07:00
2019-04-19 14:07:40 -07:00