linux/net/core
Andrey Ignatov d692f1138a bpf: Support bpf_get_socket_cookie in more prog types
bpf_get_socket_cookie() helper can be used to identify skb that
correspond to the same socket.

Though socket cookie can be useful in many other use-cases where socket is
available in program context. Specifically BPF_PROG_TYPE_CGROUP_SOCK_ADDR
and BPF_PROG_TYPE_SOCK_OPS programs can benefit from it so that one of
them can augment a value in a map prepared earlier by other program for
the same socket.

The patch adds support to call bpf_get_socket_cookie() from
BPF_PROG_TYPE_CGROUP_SOCK_ADDR and BPF_PROG_TYPE_SOCK_OPS.

It doesn't introduce new helpers. Instead it reuses same helper name
bpf_get_socket_cookie() but adds support to this helper to accept
`struct bpf_sock_addr` and `struct bpf_sock_ops`.

Documentation in bpf.h is changed in a way that should not break
automatic generation of markdown.

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-07-31 09:33:48 +02:00
..
Makefile
datagram.c
dev.c net: Init backlog NAPI's gro_hash. 2018-07-20 23:37:55 -07:00
dev_addr_lists.c
dev_ioctl.c net: remove redundant input checks in SIOCSIFTXQLEN case of dev_ifsioc 2018-07-24 11:36:15 -07:00
devlink.c devlink: Add generic parameters region_snapshot 2018-07-12 17:37:13 -07:00
drop_monitor.c
dst.c
dst_cache.c
ethtool.c net: Add TLS RX offload feature 2018-07-16 00:12:09 -07:00
failover.c
fib_notifier.c
fib_rules.c net: fib_rules: bring back rule_exists to match rule during add 2018-06-30 22:11:13 +09:00
filter.c bpf: Support bpf_get_socket_cookie in more prog types 2018-07-31 09:33:48 +02:00
flow_dissector.c flow_dissector: Dissect tos and ttl from the tunnel info 2018-07-19 23:26:01 -07:00
gen_estimator.c
gen_stats.c gen_stats: Fix netlink stats dumping in the presence of padding 2018-07-04 14:44:45 +09:00
gro_cells.c
hwbm.c
link_watch.c
lwt_bpf.c lwt_bpf: remove unnecessary rcu_read_lock in run_lwt_bpf 2018-07-31 09:26:34 +02:00
lwtunnel.c
neighbour.c net: remove blank lines at end of file 2018-07-24 14:10:43 -07:00
net-procfs.c
net-sysfs.c net: create reusable function for getting ownership info of sysfs inodes 2018-07-20 23:44:36 -07:00
net-sysfs.h
net-traces.c
net_namespace.c net: create reusable function for getting ownership info of sysfs inodes 2018-07-20 23:44:36 -07:00
netclassid_cgroup.c
netevent.c
netpoll.c
netprio_cgroup.c
page_pool.c
pktgen.c pktgen: convert safe uses of strncpy() to strcpy() to avoid string truncation warning 2018-07-18 15:24:04 -07:00
ptp_classifier.c
request_sock.c
rtnetlink.c xdp: fix uninitialized 'err' variable 2018-07-18 13:32:03 -07:00
scm.c
secure_seq.c
skbuff.c Merge ra.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux 2018-07-20 21:17:12 -07:00
sock.c net/sched: Make etf report drops on error_queue 2018-07-04 22:30:28 +09:00
sock_diag.c
sock_reuseport.c
stream.c
sysctl_net_core.c
timestamping.c
tso.c
utils.c
xdp.c xdp: factor out common program/flags handling from drivers 2018-07-13 20:26:35 +02:00