UPSTREAM: 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.

Change-Id: Id0e35e63672540015a1789d7b0cee7cc24c597ab
Signed-off-by: Lorenz Bauer <[email protected]>
Signed-off-by: Jakub Sitnicki <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
This commit is contained in:
Lorenz Bauer 2020-03-09 11:12:38 +00:00 • committed by basamaryan
commit c97a4fd857
No known key found for this signature in database
GPG key ID: 210D5384FB2A5885
4 changed files with 60 additions and 0 deletions

View file

@ -9140,6 +9140,7 @@ F: include/linux/skmsg.h
F: net/core/skmsg.c
F: net/core/sock_map.c
F: net/ipv4/tcp_bpf.c
F: net/ipv4/udp_bpf.c
LANTIQ / INTEL Ethernet drivers
M: Hauke Mehrtens <[email protected]>