]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: sockmap, support for msg_peek in sk_msg with redirect ingress
authorJohn Fastabend <john.fastabend@gmail.com>
Tue, 16 Oct 2018 18:08:04 +0000 (11:08 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 17 Oct 2018 00:30:32 +0000 (02:30 +0200)
commit8660535439972ebedc0d0a4228710e1ab4c528d1
treeb89b9cb06c6adb6862759afaefae6fb7ab6d768c
parent6ba18d5ddc8e4324a9192c0f1463c0839be7a421
bpf: sockmap, support for msg_peek in sk_msg with redirect ingress

This adds support for the MSG_PEEK flag when doing redirect to ingress
and receiving on the sk_msg psock queue. Previously the flag was
being ignored which could confuse applications if they expected the
flag to work as normal.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/net/tcp.h
net/ipv4/tcp_bpf.c
net/tls/tls_sw.c