On Wed, Jun 17, 2020 at 4:02 AM Dmitry Yakunin <zeil@xxxxxxxxxxxxxx> wrote: > > This patch adds support of SO_KEEPALIVE flag and TCP related options > to bpf_setsockopt() routine. This is helpful if we want to enable or tune > TCP keepalive for applications which don't do it in the userspace code. > > v2: > - update kernel-doc (Nikita Vetoshkin <nekto0n@xxxxxxxxxxxxxx>) > > Signed-off-by: Dmitry Yakunin <zeil@xxxxxxxxxxxxxx> > Acked-by: Martin KaFai Lau <kafai@xxxxxx> > --- > include/uapi/linux/bpf.h | 7 +++++-- > net/core/filter.c | 36 +++++++++++++++++++++++++++++++++++- > 2 files changed, 40 insertions(+), 3 deletions(-) Please update tools/include/uapi/linux/bpf.h as well. Also please add a selftest for at least some new opts.