<feed xmlns='http://www.w3.org/2005/Atom'>
<title>blackbird-op-linux/net/bpf, branch master</title>
<subtitle>Blackbird™ Linux sources for OpenPOWER</subtitle>
<id>https://git.raptorcs.com/git/blackbird-op-linux/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/blackbird-op-linux/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/'/>
<updated>2019-12-19T01:05:58+00:00</updated>
<entry>
<title>bpf: Allow to change skb mark in test_run</title>
<updated>2019-12-19T01:05:58+00:00</updated>
<author>
<name>Nikita V. Shirokov</name>
<email>tehnerd@tehnerd.com</email>
</author>
<published>2019-12-18T20:57:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=6de6c1f840c051017f2308503858ff19344c56b3'/>
<id>urn:sha1:6de6c1f840c051017f2308503858ff19344c56b3</id>
<content type='text'>
allow to pass skb's mark field into bpf_prog_test_run ctx
for BPF_PROG_TYPE_SCHED_CLS prog type. that would allow
to test bpf programs which are doing decision based on this
field

Signed-off-by: Nikita V. Shirokov &lt;tehnerd@tehnerd.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
</content>
</entry>
<entry>
<title>bpf: Expose __sk_buff wire_len/gso_segs to BPF_PROG_TEST_RUN</title>
<updated>2019-12-13T23:26:53+00:00</updated>
<author>
<name>Stanislav Fomichev</name>
<email>sdf@google.com</email>
</author>
<published>2019-12-13T22:30:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=850a88cc4096fe1df407452ba2e4d28cf5b3eee9'/>
<id>urn:sha1:850a88cc4096fe1df407452ba2e4d28cf5b3eee9</id>
<content type='text'>
wire_len should not be less than real len and is capped by GSO_MAX_SIZE.
gso_segs is capped by GSO_MAX_SEGS.

v2:
* set wire_len to skb-&gt;len when passed wire_len is 0 (Alexei Starovoitov)

Signed-off-by: Stanislav Fomichev &lt;sdf@google.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Cc: Martin KaFai Lau &lt;kafai@fb.com&gt;
Link: https://lore.kernel.org/bpf/20191213223028.161282-1-sdf@google.com
</content>
</entry>
<entry>
<title>bpf: Start using the BPF dispatcher in BPF_TEST_RUN</title>
<updated>2019-12-13T21:09:32+00:00</updated>
<author>
<name>Björn Töpel</name>
<email>bjorn.topel@intel.com</email>
</author>
<published>2019-12-13T17:51:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=f23c4b3924d2e9382820ee677b68d42d5dd7b08b'/>
<id>urn:sha1:f23c4b3924d2e9382820ee677b68d42d5dd7b08b</id>
<content type='text'>
In order to properly exercise the BPF dispatcher, this commit adds BPF
dispatcher usage to BPF_TEST_RUN when executing XDP programs.

Signed-off-by: Björn Töpel &lt;bjorn.topel@intel.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20191213175112.30208-5-bjorn.topel@gmail.com
</content>
</entry>
<entry>
<title>bpf: Switch to offsetofend in BPF_PROG_TEST_RUN</title>
<updated>2019-12-11T13:52:18+00:00</updated>
<author>
<name>Stanislav Fomichev</name>
<email>sdf@google.com</email>
</author>
<published>2019-12-10T19:19:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=b590cb5f802dc20c72f507f7fbe6737222d0afba'/>
<id>urn:sha1:b590cb5f802dc20c72f507f7fbe6737222d0afba</id>
<content type='text'>
Switch existing pattern of "offsetof(..., member) + FIELD_SIZEOF(...,
member)' to "offsetofend(..., member)" which does exactly what
we need without all the copy-paste.

Suggested-by: Andrii Nakryiko &lt;andriin@fb.com&gt;
Signed-off-by: Stanislav Fomichev &lt;sdf@google.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Acked-by: Andrii Nakryiko &lt;andriin@fb.com&gt;
Link: https://lore.kernel.org/bpf/20191210191933.105321-1-sdf@google.com
</content>
</entry>
<entry>
<title>bpf: Fix memory leak on object 'data'</title>
<updated>2019-11-19T03:32:59+00:00</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2019-11-18T11:40:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=a25ecd9d1e60241df905b29fb84765eb74545c4f'/>
<id>urn:sha1:a25ecd9d1e60241df905b29fb84765eb74545c4f</id>
<content type='text'>
The error return path on when bpf_fentry_test* tests fail does not
kfree 'data'. Fix this by adding the missing kfree.

Addresses-Coverity: ("Resource leak")

Fixes: faeb2dce084a ("bpf: Add kernel test functions for fentry testing")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20191118114059.37287-1-colin.king@canonical.com
</content>
</entry>
<entry>
<title>bpf: Add kernel test functions for fentry testing</title>
<updated>2019-11-15T22:43:01+00:00</updated>
<author>
<name>Alexei Starovoitov</name>
<email>ast@kernel.org</email>
</author>
<published>2019-11-14T18:57:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=faeb2dce084aff92d466c6ce68481989b815435b'/>
<id>urn:sha1:faeb2dce084aff92d466c6ce68481989b815435b</id>
<content type='text'>
Add few kernel functions with various number of arguments,
their types and sizes for BPF trampoline testing to cover
different calling conventions.

Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Acked-by: Song Liu &lt;songliubraving@fb.com&gt;
Link: https://lore.kernel.org/bpf/20191114185720.1641606-9-ast@kernel.org
</content>
</entry>
<entry>
<title>bpf: Allow __sk_buff tstamp in BPF_PROG_TEST_RUN</title>
<updated>2019-10-15T23:24:26+00:00</updated>
<author>
<name>Stanislav Fomichev</name>
<email>sdf@google.com</email>
</author>
<published>2019-10-15T18:31:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=ba94094818a811758570990648160a6ba2ca05cb'/>
<id>urn:sha1:ba94094818a811758570990648160a6ba2ca05cb</id>
<content type='text'>
It's useful for implementing EDT related tests (set tstamp, run the
test, see how the tstamp is changed or observe some other parameter).

Note that bpf_ktime_get_ns() helper is using monotonic clock, so for
the BPF programs that compare tstamp against it, tstamp should be
derived from clock_gettime(CLOCK_MONOTONIC, ...).

Signed-off-by: Stanislav Fomichev &lt;sdf@google.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Acked-by: Martin KaFai Lau &lt;kafai@fb.com&gt;
Link: https://lore.kernel.org/bpf/20191015183125.124413-1-sdf@google.com
</content>
</entry>
<entry>
<title>bpf/flow_dissector: support flags in BPF_PROG_TEST_RUN</title>
<updated>2019-07-26T01:00:41+00:00</updated>
<author>
<name>Stanislav Fomichev</name>
<email>sdf@google.com</email>
</author>
<published>2019-07-25T22:52:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=b2ca4e1cfa7d3d755e1ec637d1235f89af9bd01f'/>
<id>urn:sha1:b2ca4e1cfa7d3d755e1ec637d1235f89af9bd01f</id>
<content type='text'>
This will allow us to write tests for those flags.

v2:
* Swap kfree(data) and kfree(user_ctx) (Song Liu)

Acked-by: Petar Penkov &lt;ppenkov@google.com&gt;
Acked-by: Willem de Bruijn &lt;willemb@google.com&gt;
Acked-by: Song Liu &lt;songliubraving@fb.com&gt;
Cc: Song Liu &lt;songliubraving@fb.com&gt;
Cc: Willem de Bruijn &lt;willemb@google.com&gt;
Cc: Petar Penkov &lt;ppenkov@google.com&gt;
Signed-off-by: Stanislav Fomichev &lt;sdf@google.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
</content>
</entry>
<entry>
<title>bpf/flow_dissector: pass input flags to BPF flow dissector program</title>
<updated>2019-07-26T01:00:41+00:00</updated>
<author>
<name>Stanislav Fomichev</name>
<email>sdf@google.com</email>
</author>
<published>2019-07-25T22:52:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=086f95682114fd2d1790bd3226e76cbae9a2d192'/>
<id>urn:sha1:086f95682114fd2d1790bd3226e76cbae9a2d192</id>
<content type='text'>
C flow dissector supports input flags that tell it to customize parsing
by either stopping early or trying to parse as deep as possible. Pass
those flags to the BPF flow dissector so it can make the same
decisions. In the next commits I'll add support for those flags to
our reference bpf_flow.c

v3:
* Export copy of flow dissector flags instead of moving (Alexei Starovoitov)

Acked-by: Petar Penkov &lt;ppenkov@google.com&gt;
Acked-by: Willem de Bruijn &lt;willemb@google.com&gt;
Acked-by: Song Liu &lt;songliubraving@fb.com&gt;
Cc: Song Liu &lt;songliubraving@fb.com&gt;
Cc: Willem de Bruijn &lt;willemb@google.com&gt;
Cc: Petar Penkov &lt;ppenkov@google.com&gt;
Signed-off-by: Stanislav Fomichev &lt;sdf@google.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
</content>
</entry>
<entry>
<title>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206</title>
<updated>2019-05-30T18:29:53+00:00</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2019-05-28T17:10:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/blackbird-op-linux/commit/?id=25763b3c864cf517d686661012d184ee47a49b4c'/>
<id>urn:sha1:25763b3c864cf517d686661012d184ee47a49b4c</id>
<content type='text'>
Based on 1 normalized pattern(s):

  this program is free software you can redistribute it and or modify
  it under the terms of version 2 of the gnu general public license as
  published by the free software foundation

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-only

has been chosen to replace the boilerplate/reference in 107 file(s).

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;
Reviewed-by: Richard Fontana &lt;rfontana@redhat.com&gt;
Reviewed-by: Steve Winslow &lt;swinslow@gmail.com&gt;
Reviewed-by: Alexios Zavras &lt;alexios.zavras@intel.com&gt;
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190528171438.615055994@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
