1. 22 Jul, 2022 4 commits
  2. 21 Jul, 2022 5 commits
  3. 20 Jul, 2022 1 commit
  4. 19 Jul, 2022 21 commits
  5. 15 Jul, 2022 8 commits
  6. 14 Jul, 2022 1 commit
    • Ben Dooks's avatar
      bpf: Add endian modifiers to fix endian warnings · 96a233e6
      Ben Dooks authored
      A couple of the syscalls which load values (bpf_skb_load_helper_16() and
      bpf_skb_load_helper_32()) are using u16/u32 types which are triggering
      warnings as they are then converted from big-endian to CPU-endian. Fix
      these by making the types __be instead.
      
      Fixes the following sparse warnings:
      
        net/core/filter.c:246:32: warning: cast to restricted __be16
        net/core/filter.c:246:32: warning: cast to restricted __be16
        net/core/filter.c:246:32: warning: cast to restricted __be16
        net/core/filter.c:246:32: warning: cast to restricted __be16
        net/core/filter.c:273:32: warning: cast to restricted __be32
        net/core/filter.c:273:32: warning: cast to restricted __be32
        net/core/filter.c:273:32: warning: cast to restricted __be32
        net/core/filter.c:273:32: warning: cast to restricted __be32
        net/core/filter.c:273:32: warning: cast to restricted __be32
        net/core/filter.c:273:32: warning: cast to restricted __be32
      Signed-off-by: default avatarBen Dooks <ben.dooks@sifive.com>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Link: https://lore.kernel.org/bpf/20220714105101.297304-1-ben.dooks@sifive.com
      96a233e6