Skip to content
Snippets Groups Projects
  1. Jul 11, 2018
  2. Jul 04, 2018
  3. Jun 28, 2018
    • David Ahern's avatar
      bpf: Change bpf_fib_lookup to return lookup status · 4c79579b
      David Ahern authored
      
      For ACLs implemented using either FIB rules or FIB entries, the BPF
      program needs the FIB lookup status to be able to drop the packet.
      Since the bpf_fib_lookup API has not reached a released kernel yet,
      change the return code to contain an encoding of the FIB lookup
      result and return the nexthop device index in the params struct.
      
      In addition, inform the BPF program of any post FIB lookup reason as
      to why the packet needs to go up the stack.
      
      The fib result for unicast routes must have an egress device, so remove
      the check that it is non-NULL.
      
      Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      4c79579b
  4. Jun 26, 2018
  5. Jun 09, 2018
  6. Jun 08, 2018
  7. Jun 05, 2018
  8. Jun 04, 2018
  9. May 25, 2018
  10. May 22, 2018
  11. May 18, 2018
  12. May 16, 2018
  13. May 15, 2018
  14. May 14, 2018
  15. May 13, 2018
  16. May 10, 2018
  17. May 03, 2018
  18. Apr 30, 2018
    • Yonghong Song's avatar
      samples/bpf: fix kprobe attachment issue on x64 · 34745aed
      Yonghong Song authored
      
      Commit d5a00528 ("syscalls/core, syscalls/x86: Rename
      struct pt_regs-based sys_*() to __x64_sys_*()") renamed a lot
      of syscall function sys_*() to __x64_sys_*().
      This caused several kprobe based samples/bpf tests failing.
      
      This patch fixed the problem in bpf_load.c.
      For x86_64 architecture, function name __x64_sys_*() will be
      first used for kprobe event creation. If the creation is successful,
      it will be used. Otherwise, function name sys_*() will be used
      for kprobe event creation.
      
      Fixes: d5a00528 ("syscalls/core, syscalls/x86: Rename struct pt_regs-based sys_*() to __x64_sys_*()")
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      34745aed
  19. Apr 29, 2018
  20. Apr 26, 2018
  21. Apr 24, 2018
Loading