netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: core: Two Helper function about socket information
@ 2017-02-02 20:59 Chenbo Feng
  2017-02-02 20:59 ` [PATCH net-next 1/2] Add a helper function to get socket cookie in eBPF Chenbo Feng
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Chenbo Feng @ 2017-02-02 20:59 UTC (permalink / raw)
  To: David S . Miller, Alexei Starovoitov, netdev
  Cc: Willem de Bruijn, Lorenzo Colitti, Chenbo Feng

Introduce two eBpf helper function to get the socket cookie and
socket uid for each packet. The helper function is useful when
the *sk field inside sk_buff is not empty.

Chenbo Feng (2):
  Add a helper function to get socket cookie in eBPF
  Add a eBPF helper function to retrieve socket uid

 include/linux/bpf.h       |  2 ++
 include/linux/sock_diag.h |  1 +
 include/uapi/linux/bpf.h  | 16 +++++++++++++++-
 net/core/filter.c         | 34 ++++++++++++++++++++++++++++++++++
 net/core/sock_diag.c      |  3 ++-
 5 files changed, 54 insertions(+), 2 deletions(-)

-- 
2.11.0.483.g087da7b7c-goog

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-02-06  3:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-02 20:59 [PATCH net-next 0/2] net: core: Two Helper function about socket information Chenbo Feng
2017-02-02 20:59 ` [PATCH net-next 1/2] Add a helper function to get socket cookie in eBPF Chenbo Feng
2017-02-02 21:23   ` Daniel Borkmann
2017-02-02 20:59 ` [PATCH net-next 2/2] Add a eBPF helper function to retrieve socket uid Chenbo Feng
2017-02-02 21:32   ` Daniel Borkmann
2017-02-03  0:00     ` Lorenzo Colitti
2017-02-03  0:28       ` Daniel Borkmann
2017-02-03  0:31       ` Eric Dumazet
2017-02-03  1:18         ` Lorenzo Colitti
2017-02-03  1:51           ` Eric Dumazet
2017-02-03  8:25             ` Daniel Borkmann
2017-02-06  3:25             ` Lorenzo Colitti
2017-02-03  0:13 ` [PATCH net-next 0/2] net: core: Two Helper function about socket information Alexei Starovoitov
2017-02-03 16:19   ` Lorenzo Colitti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).