Re: [PATCH bpf-next 0/5] add bpf cgroup hooks that trigger on socket close

2019-01-22 Thread Stanislav Fomichev
On 01/18, Andrey Ignatov wrote: > Stanislav Fomichev [Fri, 2019-01-18 08:50 -0800]: > > On 01/18, Andrey Ignatov wrote: > > > Stanislav Fomichev [Thu, 2019-01-17 16:41 -0800]: > > > > Currently, we have BPF_CGROUP_INET_SOCK_CREATE hook that triggers on > > > > socket creation and there is no way

Re: [PATCH bpf-next 0/5] add bpf cgroup hooks that trigger on socket close

2019-01-18 Thread Andrey Ignatov
Stanislav Fomichev [Fri, 2019-01-18 08:50 -0800]: > On 01/18, Andrey Ignatov wrote: > > Stanislav Fomichev [Thu, 2019-01-17 16:41 -0800]: > > > Currently, we have BPF_CGROUP_INET_SOCK_CREATE hook that triggers on > > > socket creation and there is no way to know when the socket is being > > > clo

Re: [PATCH bpf-next 0/5] add bpf cgroup hooks that trigger on socket close

2019-01-18 Thread Stanislav Fomichev
On 01/18, Andrey Ignatov wrote: > Stanislav Fomichev [Thu, 2019-01-17 16:41 -0800]: > > Currently, we have BPF_CGROUP_INET_SOCK_CREATE hook that triggers on > > socket creation and there is no way to know when the socket is being > > closed. Add new set of hooks BPF_CGROUP_INET{4,6}_SOCK_RELEASE >

Re: [PATCH bpf-next 0/5] add bpf cgroup hooks that trigger on socket close

2019-01-17 Thread Andrey Ignatov
Stanislav Fomichev [Thu, 2019-01-17 16:41 -0800]: > Currently, we have BPF_CGROUP_INET_SOCK_CREATE hook that triggers on > socket creation and there is no way to know when the socket is being > closed. Add new set of hooks BPF_CGROUP_INET{4,6}_SOCK_RELEASE > that trigger when the socket is closed.

Re: [PATCH bpf-next 0/5] add bpf cgroup hooks that trigger on socket close

2019-01-17 Thread Stanislav Fomichev
On Thu, Jan 17, 2019 at 5:02 PM Eric Dumazet wrote: > > > > On 01/17/2019 04:41 PM, Stanislav Fomichev wrote: > > Currently, we have BPF_CGROUP_INET_SOCK_CREATE hook that triggers on > > socket creation and there is no way to know when the socket is being > > closed. Add new set of hooks BPF_CGROU

Re: [PATCH bpf-next 0/5] add bpf cgroup hooks that trigger on socket close

2019-01-17 Thread Eric Dumazet
On 01/17/2019 04:41 PM, Stanislav Fomichev wrote: > Currently, we have BPF_CGROUP_INET_SOCK_CREATE hook that triggers on > socket creation and there is no way to know when the socket is being > closed. Add new set of hooks BPF_CGROUP_INET{4,6}_SOCK_RELEASE > that trigger when the socket is close

[PATCH bpf-next 0/5] add bpf cgroup hooks that trigger on socket close

2019-01-17 Thread Stanislav Fomichev
Currently, we have BPF_CGROUP_INET_SOCK_CREATE hook that triggers on socket creation and there is no way to know when the socket is being closed. Add new set of hooks BPF_CGROUP_INET{4,6}_SOCK_RELEASE that trigger when the socket is closed. Initial intended usecase is to cleanup statistics after P