1. 12 Mar, 2024 2 commits
    • Ido Schimmel's avatar
      nexthop: Only parse NHA_OP_FLAGS for get messages that require it · dc5e0141
      Ido Schimmel authored
      The attribute is parsed into 'op_flags' in nh_valid_get_del_req() which
      is called from the handlers of three message types: RTM_DELNEXTHOP,
      RTM_GETNEXTHOPBUCKET and RTM_GETNEXTHOP. The attribute is only used by
      the latter and rejected by the policies of the other two.
      
      Pass 'op_flags' as NULL from the handlers of the other two and only
      parse the attribute when the argument is not NULL.
      
      This is a preparation for a subsequent patch.
      Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
      Link: https://lore.kernel.org/r/20240311162307.545385-2-idosch@nvidia.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      dc5e0141
    • Jakub Kicinski's avatar
      Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · 5f20e6ab
      Jakub Kicinski authored
      Alexei Starovoitov says:
      
      ====================
      pull-request: bpf-next 2024-03-11
      
      We've added 59 non-merge commits during the last 9 day(s) which contain
      a total of 88 files changed, 4181 insertions(+), 590 deletions(-).
      
      The main changes are:
      
      1) Enforce VM_IOREMAP flag and range in ioremap_page_range and introduce
         VM_SPARSE kind and vm_area_[un]map_pages to be used in bpf_arena,
         from Alexei.
      
      2) Introduce bpf_arena which is sparse shared memory region between bpf
         program and user space where structures inside the arena can have
         pointers to other areas of the arena, and pointers work seamlessly for
         both user-space programs and bpf programs, from Alexei and Andrii.
      
      3) Introduce may_goto instruction that is a contract between the verifier
         and the program. The verifier allows the program to loop assuming it's
         behaving well, but reserves the right to terminate it, from Alexei.
      
      4) Use IETF format for field definitions in the BPF standard
         document, from Dave.
      
      5) Extend struct_ops libbpf APIs to allow specify version suffixes for
         stuct_ops map types, share the same BPF program between several map
         definitions, and other improvements, from Eduard.
      
      6) Enable struct_ops support for more than one page in trampolines,
         from Kui-Feng.
      
      7) Support kCFI + BPF on riscv64, from Puranjay.
      
      8) Use bpf_prog_pack for arm64 bpf trampoline, from Puranjay.
      
      9) Fix roundup_pow_of_two undefined behavior on 32-bit archs, from Toke.
      ====================
      
      Link: https://lore.kernel.org/r/20240312003646.8692-1-alexei.starovoitov@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      5f20e6ab
  2. 11 Mar, 2024 38 commits