Thread (14 messages) flat view 14 messages, 5 authors, 2017-02-06
STALE3468d

Revision v1 of 8 in this series.

Revisions (8)
  1. v1 current
  2. v3 [diff vs current]
  3. v3 [diff vs current]
  4. v4 [diff vs current]
  5. v5 [diff vs current]
  6. v6 [diff vs current]
  7. v7 [diff vs current]
  8. v8 [diff vs current]

[PATCH net-next 0/2] net: core: Two Helper function about socket information

From: Chenbo Feng <hidden>
Date: 2017-02-02 21:00:04

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help