1. 21 Apr, 2018 4 commits
    • David Ahern's avatar
      net/ipv6: Move rcu_read_lock to callers of ip6_rt_cache_alloc · 4d85cd0c
      David Ahern authored
      A later patch protects 'from' in rt6_info and this simplifies the
      locking needed by it.
      
      With the move, the fib6_info_hold for the uncached_rt is no longer
      needed since the rcu_lock is still held.
      Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4d85cd0c
    • David Ahern's avatar
      net/ipv6: Rename rt6_get_cookie_safe · a269f1a7
      David Ahern authored
      rt6_get_cookie_safe takes a fib6_info and checks the sernum of
      the node. Update the name to reflect its purpose.
      Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a269f1a7
    • David Ahern's avatar
      net/ipv6: Clean up rt expires helpers · 6a3e030f
      David Ahern authored
      rt6_clean_expires and rt6_set_expires are no longer used. Removed them.
      rt6_update_expires has 1 caller in route.c, so move it from the header.
      Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6a3e030f
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · 1b80f86e
      David S. Miller authored
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf-next 2018-04-21
      
      The following pull-request contains BPF updates for your *net-next* tree.
      
      The main changes are:
      
      1) Initial work on BPF Type Format (BTF) is added, which is a meta
         data format which describes the data types of BPF programs / maps.
         BTF has its roots from CTF (Compact C-Type format) with a number
         of changes to it. First use case is to provide a generic pretty
         print capability for BPF maps inspection, later work will also
         add BTF to bpftool. pahole support to convert dwarf to BTF will
         be upstreamed as well (https://github.com/iamkafai/pahole/tree/btf),
         from Martin.
      
      2) Add a new xdp_bpf_adjust_tail() BPF helper for XDP that allows
         for changing the data_end pointer. Only shrinking is currently
         supported which helps for crafting ICMP control messages. Minor
         changes in drivers have been added where needed so they recalc
         the packet's length also when data_end was adjusted, from Nikita.
      
      3) Improve bpftool to make it easier to feed hex bytes via cmdline
         for map operations, from Quentin.
      
      4) Add support for various missing BPF prog types and attach types
         that have been added to kernel recently but neither to bpftool
         nor libbpf yet. Doc and bash completion updates have been added
         as well for bpftool, from Andrey.
      
      5) Proper fix for avoiding to leak info stored in frame data on page
         reuse for the two bpf_xdp_adjust_{head,meta} helpers by disallowing
         to move the pointers into struct xdp_frame area, from Jesper.
      
      6) Follow-up compile fix from BTF in order to include stdbool.h in
         libbpf, from Björn.
      
      7) Few fixes in BPF sample code, that is, a typo on the netdevice
         in a comment and fixup proper dump of XDP action code in the
         tracepoint exception, from Wang and Jesper.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1b80f86e
  2. 20 Apr, 2018 28 commits
  3. 19 Apr, 2018 8 commits