2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00
linux-next/tools/include
Chenbo Feng 91b8270f2a Add a helper function to get socket cookie in eBPF
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: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Chenbo Feng <fengc@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-23 17:01:02 -07:00
..
asm tools: Provide a definition of WARN_ON 2017-01-27 21:29:39 -05:00
asm-generic radix tree test suite: Remove duplicate bitops code 2017-01-27 21:29:39 -05:00
linux give up on gcc ilog2() constant optimizations 2017-03-02 12:17:22 -08:00
tools tools: add more endian.h macros 2014-09-26 11:03:01 +02:00
uapi Add a helper function to get socket cookie in eBPF 2017-03-23 17:01:02 -07:00