diff options
author | Jakub Sitnicki <jakub@cloudflare.com> | 2020-07-17 12:35:29 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-07-17 20:18:17 -0700 |
commit | 72f7e9440e9bd06f855b21eba09c1017395f430a (patch) | |
tree | a2ab9be2f9bd1d0ca8e1f495e6a558f7fd5b21ec /net/ipv6 | |
parent | 7629c73a1466ec2348e9f64c874c19bf13f35f4c (diff) |
udp: Run SK_LOOKUP BPF program on socket lookup
Following INET/TCP socket lookup changes, modify UDP socket lookup to let
BPF program select a receiving socket before searching for a socket by
destination address and port as usual.
Lookup of connected sockets that match packet 4-tuple is unaffected by this
change. BPF program runs, and potentially overrides the lookup result, only
if a 4-tuple match was not found.
Suggested-by: Marek Majkowski <marek@cloudflare.com>
Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200717103536.397595-9-jakub@cloudflare.com
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions