sock_map: Update sock type checks for UDP
authorCong Wang <cong.wang@bytedance.com>
Wed, 31 Mar 2021 02:32:35 +0000 (19:32 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 1 Apr 2021 17:56:14 +0000 (10:56 -0700)
commit122e6c79efe1c25816118aca9cfabe54e99c2432
tree2d50fcd9ed58ad416e631f573c357ad1480264e9
parent1f5be6b3b063767202f815d5571f7d03729f1282
sock_map: Update sock type checks for UDP

Now UDP supports sockmap and redirection, we can safely update
the sock type checks for it accordingly.

Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20210331023237.41094-15-xiyou.wangcong@gmail.com
net/core/sock_map.c