OSDN Git Service

bpf: Refactor bpf_setsockopt(TCP_CONGESTION) handling into another function
authorMartin KaFai Lau <martin.lau@kernel.org>
Thu, 29 Sep 2022 07:04:05 +0000 (00:04 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 29 Sep 2022 16:25:47 +0000 (09:25 -0700)
commit1e7d217faa11ac027f622124a3842aafbd0c4a42
tree33a880b4a31f1e912cc01ee99fa31738e7f962d0
parent37cfbe0bf2e85287350a6b0ca9521f5a4c7389ce
bpf: Refactor bpf_setsockopt(TCP_CONGESTION) handling into another function

This patch moves the bpf_setsockopt(TCP_CONGESTION) logic into
another function.  The next patch will add extra logic to avoid
recursion and this will make the latter patch easier to follow.

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20220929070407.965581-4-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/core/filter.c