RE: [PATCH bpf-next] bpf: add SO_KEEPALIVE and related options to bpf_setsockopt

2020-05-29 Thread David Laight
From: Eric Dumazet > Sent: 27 May 2020 17:43 > > On 5/27/20 8:05 AM, Dmitry Yakunin 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

Re: [PATCH bpf-next] bpf: add SO_KEEPALIVE and related options to bpf_setsockopt

2020-05-27 Thread Dmitry Yakunin
27.05.2020, 20:03, "Martin KaFai Lau" : > On Wed, May 27, 2020 at 06:05:43PM +0300, Dmitry Yakunin 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 whic

Re: [PATCH bpf-next] bpf: add SO_KEEPALIVE and related options to bpf_setsockopt

2020-05-27 Thread Dmitry Yakunin
27.05.2020, 19:43, "Eric Dumazet" : > On 5/27/20 8:05 AM, Dmitry Yakunin 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 users

Re: [PATCH bpf-next] bpf: add SO_KEEPALIVE and related options to bpf_setsockopt

2020-05-27 Thread Martin KaFai Lau
On Wed, May 27, 2020 at 06:05:43PM +0300, Dmitry Yakunin 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. > In order to

Re: [PATCH bpf-next] bpf: add SO_KEEPALIVE and related options to bpf_setsockopt

2020-05-27 Thread Eric Dumazet
On 5/27/20 8:05 AM, Dmitry Yakunin 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. > In order to avoid copy-paste, c

[PATCH bpf-next] bpf: add SO_KEEPALIVE and related options to bpf_setsockopt

2020-05-27 Thread Dmitry Yakunin
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. In order to avoid copy-paste, common code from classic setsockopt was moved to auxil