Re: [bpf-next PATCH v2 07/18] bpf: sockmap, add msg_cork_bytes() helper

2018-03-15 Thread David Miller
From: John Fastabend Date: Mon, 12 Mar 2018 12:23:39 -0700 > In the case where we need a specific number of bytes before a > verdict can be assigned, even if the data spans multiple sendmsg > or sendfile calls. The BPF program may use msg_cork_bytes(). > > The extreme

[bpf-next PATCH v2 07/18] bpf: sockmap, add msg_cork_bytes() helper

2018-03-12 Thread John Fastabend
In the case where we need a specific number of bytes before a verdict can be assigned, even if the data spans multiple sendmsg or sendfile calls. The BPF program may use msg_cork_bytes(). The extreme case is a user can call sendmsg repeatedly with 1-byte msg segments. Obviously, this is bad for