Thread (9 messages) flat view 9 messages, 4 authors, 2017-03-22

Re: [PATCH net-next v7 1/3] Add a helper function to get socket cookie in eBPF

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2017-03-22 11:10:51

On Tue, Mar 21, 2017 at 10:05 PM, Chenbo Feng
[off-list ref] wrote:
From: Chenbo Feng <redacted>

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@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Chenbo Feng <redacted>
Acked-by: Willem de Bruijn <willemb@google.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help