add redis sockmap sample code.
Liu Jian (4):
cgroup: make cgroup_bpf_prog_attach work when cgroup2 is not mounted
net: let sockops can use bpf_get_current_comm()
net: add local_skb parameter to identify local tcp connection
tools: add sample sockmap code for redis
include/linux/filter.h | 3 +
include/linux/skbuff.h | 5 +
include/uapi/linux/bpf.h | 1 +
kernel/bpf/cgroup.c | 16 ++
net/Kconfig | 5 +
net/core/filter.c | 18 ++
net/ipv4/tcp_input.c | 6 +-
net/ipv4/tcp_output.c | 9 +
tools/include/uapi/linux/bpf.h | 1 +
tools/netacc/Makefile | 24 +++
tools/netacc/bpf_sockmap.h | 167 +++++++++++++++++++
tools/netacc/net-acc | 35 ++++
tools/netacc/netacc.c | 296 +++++++++++++++++++++++++++++++++
tools/netacc/netaccsockmap.c | 160 ++++++++++++++++++
14 files changed, 745 insertions(+), 1 deletion(-)
create mode 100644 tools/netacc/Makefile
create mode 100644 tools/netacc/bpf_sockmap.h
create mode 100755 tools/netacc/net-acc
create mode 100644 tools/netacc/netacc.c
create mode 100644 tools/netacc/netaccsockmap.c
--
2.34.1