bpf: Add sockmap hooks for UDP sockets
authorLorenz Bauer <lmb@cloudflare.com>
Mon, 9 Mar 2020 11:12:38 +0000 (11:12 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 9 Mar 2020 21:34:58 +0000 (22:34 +0100)
commitedc6741cc66059532ba621928e3f1b02a53a2f39
treecefa40db3ea5e03a027f2ab6e0299f8e80c6a159
parentcb21802b39632ba1fa9b31ea134d2079a47600ef
bpf: Add sockmap hooks for UDP sockets

Add basic psock hooks for UDP sockets. This allows adding and
removing sockets, as well as automatic removal on unhash and close.

Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200309111243.6982-8-lmb@cloudflare.com
MAINTAINERS
include/net/udp.h
net/ipv4/Makefile
net/ipv4/udp_bpf.c [new file with mode: 0644]