[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAF=yD-+wJN2U+wo5zovzkMrrr3D36O+09A5uy1nJYf=_BWUXbA@mail.gmail.com>
Date: Wed, 22 Mar 2017 11:10:09 +0000
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: Chenbo Feng <chenbofeng.kernel@...il.com>
Cc: Network Development <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Alexei Starovoitov <ast@...com>,
Daniel Borkmann <daniel@...earbox.net>,
Lorenzo Colitti <lorenzo@...gle.com>,
Willem de Bruijn <willemb@...gle.com>,
Chenbo Feng <fengc@...gle.com>
Subject: Re: [PATCH net-next v7 1/3] Add a helper function to get socket
cookie in eBPF
On Tue, Mar 21, 2017 at 10:05 PM, Chenbo Feng
<chenbofeng.kernel@...il.com> wrote:
> From: Chenbo Feng <fengc@...gle.com>
>
> Retrieve the socket cookie generated by sock_gen_cookie() from a sk_buff
> with a known socket. Generates a new cookie if one was not yet set.If
> the socket pointer inside sk_buff is NULL, 0 is returned. The helper
> function coud be useful in monitoring per socket networking traffic
> statistics and provide a unique socket identifier per namespace.
>
> Acked-by: Alexei Starovoitov <ast@...nel.org>
> Acked-by: Daniel Borkmann <daniel@...earbox.net>
> Signed-off-by: Chenbo Feng <fengc@...gle.com>
Acked-by: Willem de Bruijn <willemb@...gle.com>
Powered by blists - more mailing lists