netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] Two Helper function about socket information
@ 2017-02-06  2:17 Chenbo Feng
  2017-02-06  2:17 ` [PATCH net-next v2 1/2] Add a helper function to get socket cookie in eBPF Chenbo Feng
  2017-02-06  2:17 ` [PATCH net-next v2 2/2] Add a eBPF helper function to retrieve socket uid Chenbo Feng
  0 siblings, 2 replies; 9+ messages in thread
From: Chenbo Feng @ 2017-02-06  2:17 UTC (permalink / raw)
  To: netdev, Alexei Starovoitov, Daniel Borkmann
  Cc: Lorenzo Colitti, Willem de Bruijn, Chenbo Feng

From: Chenbo Feng <fengc@google.com>

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/sock_diag.h |  1 +
 include/uapi/linux/bpf.h  | 16 +++++++++++++++-
 net/core/filter.c         | 32 ++++++++++++++++++++++++++++++++
 net/core/sock_diag.c      |  2 +-
 4 files changed, 49 insertions(+), 2 deletions(-)

-- 
2.7.4

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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-06  2:17 [PATCH net-next v2 0/2] Two Helper function about socket information Chenbo Feng
2017-02-06  2:17 ` [PATCH net-next v2 1/2] Add a helper function to get socket cookie in eBPF Chenbo Feng
2017-02-06  2:57   ` Eric Dumazet
2017-02-06  3:01   ` Lorenzo Colitti
2017-02-06  3:30     ` Eric Dumazet
2017-02-06 11:20   ` Daniel Borkmann
2017-02-06  2:17 ` [PATCH net-next v2 2/2] Add a eBPF helper function to retrieve socket uid Chenbo Feng
2017-02-06  2:48   ` kbuild test robot
2017-02-06  3:02   ` Eric Dumazet

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).