diff options
author | John Fastabend | 2020-05-29 16:06:41 -0700 |
---|---|---|
committer | Alexei Starovoitov | 2020-06-01 14:48:32 -0700 |
commit | ca2f5f21dbbd5e3a00cd3e97f728aa2ca0b2e011 (patch) | |
tree | 5aeebc8c7dc5e317b92dfd90bb723bd2d8960f83 /net/ipv6/udp.c | |
parent | df8fe57c071c58f355d0a4985ecd2fcaf99b050f (diff) |
bpf: Refactor sockmap redirect code so its easy to reuse
We will need this block of code called from tls context shortly
lets refactor the redirect logic so its easy to use. This also
cleans up the switch stmt so we have fewer fallthrough cases.
No logic changes are intended.
Fixes: d829e9c4112b5 ("tls: convert to generic sk_msg interface")
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/159079360110.5745.7024009076049029819.stgit@john-Precision-5820-Tower
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/ipv6/udp.c')
0 files changed, 0 insertions, 0 deletions