Re: [PATCH bpf-next] tools/bpf: fix a netlink recv issue

2018-09-11 Thread Alexei Starovoitov
On Tue, Sep 11, 2018 at 02:09:11PM -0700, Yonghong Song wrote: > Commit f7010770fbac ("tools/bpf: move bpf/lib netlink related > functions into a new file") introduced a while loop for the > netlink recv path. This while loop is needed since the > buffer in recv syscall may not be enough to hold al

[PATCH bpf-next] tools/bpf: fix a netlink recv issue

2018-09-11 Thread Yonghong Song
Commit f7010770fbac ("tools/bpf: move bpf/lib netlink related functions into a new file") introduced a while loop for the netlink recv path. This while loop is needed since the buffer in recv syscall may not be enough to hold all the information and in such cases multiple recv calls are needed. Th