1. 07 May, 2014 5 commits
  2. 06 May, 2014 1 commit
  3. 05 May, 2014 31 commits
  4. 04 May, 2014 3 commits
    • David S. Miller's avatar
      Merge branch 'filter-cleanups' · f4a7b5ee
      David S. Miller authored
      Daniel Borkmann says:
      
      ====================
      BPF cleanups
      
      v3->v4:
       - Sorry, noticed and fixed a typo in patch 3, rest as is
      v2->v3:
       - Included Dave's feedback for unsigned long type in patch 3
       - Patch 1 and patch 2 unchanged since v1, dropped other
         two for now
      v1->v2:
       - Only changed patch 5 as to suggestion from Alexei
       - Rest is the same
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f4a7b5ee
    • Daniel Borkmann's avatar
      net: filter: misc/various cleanups · eb9672f4
      Daniel Borkmann authored
      This contains only some minor misc cleanpus. We can spare us the
      extra variable declaration in __skb_get_pay_offset(), the cast in
      __get_random_u32() is rather unnecessary and in __sk_migrate_realloc()
      we can remove the memcpy() and do a direct assignment of the structs.
      Latter was suggested by Fengguang Wu found with coccinelle. Also,
      remaining pointer casts of long should be unsigned long instead.
      Suggested-by: default avatarFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
      Acked-by: default avatarAlexei Starovoitov <ast@plumgrid.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      eb9672f4
    • Daniel Borkmann's avatar
      net: filter: make register naming more comprehensible · 30743837
      Daniel Borkmann authored
      The current code is a bit hard to parse on which registers can be used,
      how they are mapped and all play together. It makes much more sense to
      define this a bit more clearly so that the code is a bit more intuitive.
      This patch cleans this up, and makes naming a bit more consistent among
      the code. This also allows for moving some of the defines into the header
      file. Clearing of A and X registers in __sk_run_filter() do not get a
      particular register name assigned as they have not an 'official' function,
      but rather just result from the concrete initial mapping of old BPF
      programs. Since for BPF helper functions for BPF_CALL we already use
      small letters, so be consistent here as well. No functional changes.
      Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
      Acked-by: default avatarAlexei Starovoitov <ast@plumgrid.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      30743837