diff options
author | Eric Dumazet <edumazet@google.com> | 2024-02-29 11:40:16 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-03-01 11:09:39 +0000 |
commit | cdb2f80f1c10654efc66c1624f66df2b87eabf06 (patch) | |
tree | f2e7cea036c72ec80082a44b44f0d412444c74ba /tools/testing/selftests/bpf/progs/fexit_sleep.c | |
parent | 590e92cdc835fcf435d8611f2477fff0e16877c7 (diff) | |
download | lwn-cdb2f80f1c10654efc66c1624f66df2b87eabf06.tar.gz lwn-cdb2f80f1c10654efc66c1624f66df2b87eabf06.zip |
inet: use xa_array iterator to implement inet_dump_ifaddr()
1) inet_dump_ifaddr() can can run under RCU protection
instead of RTNL.
2) properly return 0 at the end of a dump, avoiding an
an extra recvmsg() system call.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/fexit_sleep.c')
0 files changed, 0 insertions, 0 deletions