]> git.baikalelectronics.ru Git - kernel.git/commit
tls: replace poll implementation with read hook
authorJohn Fastabend <john.fastabend@gmail.com>
Sat, 13 Oct 2018 00:46:00 +0000 (02:46 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 15 Oct 2018 19:23:19 +0000 (12:23 -0700)
commitba5990e947f90fc6fec1d79b9c42b9f842ecd9c5
tree5e3c0dbaa1cd879581d228024c0497235ce563d9
parent1a40c5d6e820eaed47c5782cae2728aefd1928f2
tls: replace poll implementation with read hook

Instead of re-implementing poll routine use the poll callback to
trigger read from kTLS, we reuse the stream_memory_read callback
which is simpler and achieves the same. This helps to align sockmap
and kTLS so we can more easily embed BPF in kTLS.

Joint work with Daniel.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/net/tls.h
net/tls/tls_main.c
net/tls/tls_sw.c