1. 01 May, 2017 7 commits
  2. 30 Apr, 2017 30 commits
  3. 29 Apr, 2017 1 commit
  4. 28 Apr, 2017 2 commits
    • David S. Miller's avatar
      Merge branch 'bpf-misc-next' · 4c042a80
      David S. Miller authored
      Daniel Borkmann says:
      
      ====================
      Misc BPF updates
      
      This set cleans up ldimm64 leftovers from early eBPF days and
      adds couple of test cases related to this to the verifier test
      suite. It also cleans up the kallsyms spinlock (had same patch
      also in queue) by relaxing it through switching to _bh variant.
      It fixes up test_progs in relation to htons/ntohs and adds
      accessor macros for the percpu tests in test_maps.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4c042a80
    • Daniel Borkmann's avatar
      bpf: provide a generic macro for percpu values for selftests · f3515b5d
      Daniel Borkmann authored
      To overcome bugs as described and fixed in 89087c45 ("bpf: Fix
      values type used in test_maps"), provide a generic BPF_DECLARE_PERCPU()
      and bpf_percpu() accessor macro for all percpu map values used in
      tests.
      
      Declaring variables works as follows (also works for structs):
      
        BPF_DECLARE_PERCPU(uint32_t, my_value);
      
      They can then be accessed normally as uint32_t type through:
      
        bpf_percpu(my_value, <cpu_nr>)
      
      For example:
      
        bpf_percpu(my_value, 0)++;
      
      Implicitly, we make sure that the passed type is allocated and aligned
      by gcc at least on a 8-byte boundary, so that it works together with
      the map lookup/update syscall for percpu maps. We use it as a usage
      example in test_maps, so that others are free to adapt this into their
      code when necessary.
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f3515b5d