Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kernel-patches/bpf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bpf-next_base
Choose a base ref
...
head repository: linux-netdev/testing-bpf-ci
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bpf-next_base
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 6 commits
  • 49 files changed
  • 4 contributors

Commits on Mar 27, 2024

  1. bpf: Add support for passing mark with bpf_fib_lookup

    Extend the bpf_fib_lookup() helper by making it to utilize mark if
    the BPF_FIB_LOOKUP_MARK flag is set. In order to pass the mark the
    four bytes of struct bpf_fib_lookup are used, shared with the
    output-only smac/dmac fields.
    
    Signed-off-by: Anton Protopopov <[email protected]>
    Signed-off-by: Daniel Borkmann <[email protected]>
    Reviewed-by: David Ahern <[email protected]>
    Acked-by: Daniel Borkmann <[email protected]>
    Link: https://lore.kernel.org/bpf/[email protected]
    aspsk authored and borkmann committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    e108d6c View commit details
    Browse the repository at this point in the history
  2. selftests/bpf: Add BPF_FIB_LOOKUP_MARK tests

    This patch extends the fib_lookup test suite by adding a few test
    cases for each IP family to test the new BPF_FIB_LOOKUP_MARK flag
    to the bpf_fib_lookup:
    
      * Test destination IP address selection with and without a mark
        and/or the BPF_FIB_LOOKUP_MARK flag set
    
    Signed-off-by: Anton Protopopov <[email protected]>
    Signed-off-by: Daniel Borkmann <[email protected]>
    Acked-by: Daniel Borkmann <[email protected]>
    Link: https://lore.kernel.org/bpf/[email protected]
    aspsk authored and borkmann committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    1ea0f25 View commit details
    Browse the repository at this point in the history
  3. bpf: Add a check for struct bpf_fib_lookup size

    The struct bpf_fib_lookup should not grow outside of its 64 bytes.
    Add a static assert to validate this.
    
    Suggested-by: David Ahern <[email protected]>
    Signed-off-by: Anton Protopopov <[email protected]>
    Signed-off-by: Daniel Borkmann <[email protected]>
    Link: https://lore.kernel.org/bpf/[email protected]
    aspsk authored and borkmann committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    2a720cc View commit details
    Browse the repository at this point in the history
  4. bpf: improve error message for unsupported helper

    BPF verifier emits "unknown func" message when given BPF program type
    does not support BPF helper. This message may be confusing for users, as
    important context that helper is unknown only to current program type is
    not provided.
    
    This patch changes message to "program of this type cannot use helper "
    and aligns dependent code in libbpf and tests. Any suggestions on
    improving/changing this message are welcome.
    
    Signed-off-by: Mykyta Yatsenko <[email protected]>
    Acked-by: Andrii Nakryiko <[email protected]>
    Acked-by: Quentin Monnet <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    mykyta5 authored and Alexei Starovoitov committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    4c91c59 View commit details
    Browse the repository at this point in the history
  5. bpf,arena: Use helper sizeof_field in struct accessors

    Use the well defined helper sizeof_field() to calculate the size of a
    struct member, instead of doing custom calculations.
    
    Signed-off-by: Haiyue Wang <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    Haiyue Wang authored and Alexei Starovoitov committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    45a683b View commit details
    Browse the repository at this point in the history
  6. adding ci files

    Kernel Patches Daemon committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    0609f1e View commit details
    Browse the repository at this point in the history
Loading