1. 25 Apr, 2017 38 commits
  2. 24 Apr, 2017 2 commits
    • David S. Miller's avatar
      sparc64: Support cbcond instructions in eBPF JIT. · e3a724ed
      David S. Miller authored
      cbcond combines a compare with a branch into a single instruction.
      
      The limitations are:
      
      1) Only newer chips support it
      
      2) For immediate compares we are limited to 5-bit signed immediate
         values
      
      3) The branch displacement is limited to 10-bit signed
      
      4) We cannot use it for JSET
      
      Also, cbcond (unlike all other sparc control transfers) lacks a delay
      slot.
      
      Currently we don't have a useful instruction we can push into the
      delay slot of normal branches.  So using cbcond pretty much always
      increases code density, and is therefore a win.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e3a724ed
    • David S. Miller's avatar
      Merge branch 'bpf-misc-cleanups' · 0e43d100
      David S. Miller authored
      Alexander Alemayhu says:
      
      ====================
      Misc BPF cleanup
      
      while looking into making the Makefile in samples/bpf better handle O= I saw
      several warnings when running `make clean && make samples/bpf/`. This series
      reduces those warnings.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0e43d100