<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/tools/testing/selftests/bpf/progs/bpf_iter_sockmap.c, branch linux-6.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.2.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.2.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2020-09-28T23:48:02Z</updated>
<entry>
<title>selftest: bpf: Test copying a sockmap and sockhash</title>
<updated>2020-09-28T23:48:02Z</updated>
<author>
<name>Lorenz Bauer</name>
<email>lmb@cloudflare.com</email>
</author>
<published>2020-09-28T09:08:05Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5b87adc3ceee3c3131e24e9bc9ef92dd41db089f'/>
<id>urn:sha1:5b87adc3ceee3c3131e24e9bc9ef92dd41db089f</id>
<content type='text'>
Since we can now call map_update_elem(sockmap) from bpf_iter context
it's possible to copy a sockmap or sockhash in the kernel. Add a
selftest which exercises this.

Signed-off-by: Lorenz Bauer &lt;lmb@cloudflare.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20200928090805.23343-5-lmb@cloudflare.com
</content>
</entry>
<entry>
<title>selftests: bpf: Remove shared header from sockmap iter test</title>
<updated>2020-09-28T23:48:02Z</updated>
<author>
<name>Lorenz Bauer</name>
<email>lmb@cloudflare.com</email>
</author>
<published>2020-09-28T09:08:04Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=27870317337a6c24af503304620de8064c8d2e4a'/>
<id>urn:sha1:27870317337a6c24af503304620de8064c8d2e4a</id>
<content type='text'>
The shared header to define SOCKMAP_MAX_ENTRIES is a bit overkill.
Dynamically allocate the sock_fd array based on bpf_map__max_entries
instead.

Suggested-by: Yonghong Song &lt;yhs@fb.com&gt;
Signed-off-by: Lorenz Bauer &lt;lmb@cloudflare.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Acked-by: Yonghong Song &lt;yhs@fb.com&gt;
Link: https://lore.kernel.org/bpf/20200928090805.23343-4-lmb@cloudflare.com
</content>
</entry>
<entry>
<title>selftests: bpf: Test iterating a sockmap</title>
<updated>2020-09-10T19:35:26Z</updated>
<author>
<name>Lorenz Bauer</name>
<email>lmb@cloudflare.com</email>
</author>
<published>2020-09-09T16:27:12Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=2f7de9865ba3cbfcf8b504f07154fdb6124176a4'/>
<id>urn:sha1:2f7de9865ba3cbfcf8b504f07154fdb6124176a4</id>
<content type='text'>
Add a test that exercises a basic sockmap / sockhash iteration. For
now we simply count the number of elements seen. Once sockmap update
from iterators works we can extend this to perform a full copy.

Signed-off-by: Lorenz Bauer &lt;lmb@cloudflare.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20200909162712.221874-4-lmb@cloudflare.com
</content>
</entry>
</feed>
