Home
last modified time | relevance | path

Searched hist:"8934 ce2fd08171e8605f7fada91ee7619fe17ab8" (Results 1 – 4 of 4) sorted by relevance

/linux/include/linux/
H A Dfilter.hdiff 8934ce2fd08171e8605f7fada91ee7619fe17ab8 Wed Mar 28 21:49:15 CEST 2018 John Fastabend <john.fastabend@gmail.com> bpf: sockmap redirect ingress support

Add support for the BPF_F_INGRESS flag in sk_msg redirect helper.
To do this add a scatterlist ring for receiving socks to check
before calling into regular recvmsg call path. Additionally, because
the poll wakeup logic only checked the skb recv queue we need to
add a hook in TCP stack (similar to write side) so that we have
a way to wake up polling socks when a scatterlist is redirected
to that sock.

After this all that is needed is for the redirect helper to
push the scatterlist into the psock receive queue.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
/linux/include/net/
H A Dsock.hdiff 8934ce2fd08171e8605f7fada91ee7619fe17ab8 Wed Mar 28 21:49:15 CEST 2018 John Fastabend <john.fastabend@gmail.com> bpf: sockmap redirect ingress support

Add support for the BPF_F_INGRESS flag in sk_msg redirect helper.
To do this add a scatterlist ring for receiving socks to check
before calling into regular recvmsg call path. Additionally, because
the poll wakeup logic only checked the skb recv queue we need to
add a hook in TCP stack (similar to write side) so that we have
a way to wake up polling socks when a scatterlist is redirected
to that sock.

After this all that is needed is for the redirect helper to
push the scatterlist into the psock receive queue.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
/linux/net/core/
H A Dfilter.cdiff 8934ce2fd08171e8605f7fada91ee7619fe17ab8 Wed Mar 28 21:49:15 CEST 2018 John Fastabend <john.fastabend@gmail.com> bpf: sockmap redirect ingress support

Add support for the BPF_F_INGRESS flag in sk_msg redirect helper.
To do this add a scatterlist ring for receiving socks to check
before calling into regular recvmsg call path. Additionally, because
the poll wakeup logic only checked the skb recv queue we need to
add a hook in TCP stack (similar to write side) so that we have
a way to wake up polling socks when a scatterlist is redirected
to that sock.

After this all that is needed is for the redirect helper to
push the scatterlist into the psock receive queue.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
/linux/net/ipv4/
H A Dtcp.cdiff 8934ce2fd08171e8605f7fada91ee7619fe17ab8 Wed Mar 28 21:49:15 CEST 2018 John Fastabend <john.fastabend@gmail.com> bpf: sockmap redirect ingress support

Add support for the BPF_F_INGRESS flag in sk_msg redirect helper.
To do this add a scatterlist ring for receiving socks to check
before calling into regular recvmsg call path. Additionally, because
the poll wakeup logic only checked the skb recv queue we need to
add a hook in TCP stack (similar to write side) so that we have
a way to wake up polling socks when a scatterlist is redirected
to that sock.

After this all that is needed is for the redirect helper to
push the scatterlist into the psock receive queue.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>