diff options
| author | Martin KaFai Lau <[email protected]> | 2022-08-16 23:18:34 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-08-18 17:06:13 -0700 |
| commit | 75b64b68ee3f9fe90ad8f21e5c5c92de58abf725 (patch) | |
| tree | f4bbb192aaf9f8a19b2712ab7f1d224c2ddd49f2 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | ee7f1e1302f5cb29168f70827c12855f1d8c9845 (diff) | |
bpf: Change bpf_setsockopt(SOL_IPV6) to reuse do_ipv6_setsockopt()
After the prep work in the previous patches,
this patch removes the dup code from bpf_setsockopt(SOL_IPV6)
and reuses the implementation in do_ipv6_setsockopt().
ipv6 could be compiled as a module. Like how other code solved it
with stubs in ipv6_stubs.h, this patch adds the do_ipv6_setsockopt
to the ipv6_bpf_stub.
The current bpf_setsockopt(IPV6_TCLASS) does not take the
INET_ECN_MASK into the account for tcp. The
do_ipv6_setsockopt(IPV6_TCLASS) will handle it correctly.
The existing optname white-list is refactored into a new
function sol_ipv6_setsockopt().
After this last SOL_IPV6 dup code removal, the __bpf_setsockopt()
is simplified enough that the extra "{ }" around the if statement
can be removed.
Reviewed-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions