1. 07 10月, 2020 3 次提交
  2. 15 9月, 2020 3 次提交
  3. 01 9月, 2020 2 次提交
  4. 14 7月, 2020 1 次提交
  5. 06 2月, 2020 2 次提交
  6. 21 1月, 2020 1 次提交
  7. 21 12月, 2019 6 次提交
  8. 16 12月, 2019 1 次提交
  9. 16 11月, 2019 2 次提交
  10. 11 11月, 2019 2 次提交
  11. 08 10月, 2019 1 次提交
  12. 16 9月, 2019 1 次提交
  13. 31 8月, 2019 3 次提交
  14. 18 8月, 2019 1 次提交
  15. 28 6月, 2019 1 次提交
  16. 18 6月, 2019 1 次提交
  17. 02 3月, 2019 1 次提交
    • Y
      samples/bpf: silence compiler warning for xdpsock_user.c · b74e21ab
      Yonghong Song 提交于
      Compiling xdpsock_user.c with 4.8.5, I hit the following
      compilation warning:
          HOSTCC  samples/bpf/xdpsock_user.o
        /data/users/yhs/work/net-next/samples/bpf/xdpsock_user.c: In function ‘main’:
        /data/users/yhs/work/net-next/samples/bpf/xdpsock_user.c:449:6: warning: ‘idx_cq’ may be used unini
        tialized in this function [-Wmaybe-uninitialized]
          u32 idx_cq, idx_fq;
              ^
        /data/users/yhs/work/net-next/samples/bpf/xdpsock_user.c:606:7: warning: ‘idx_rx’ may be used unini
        tialized in this function [-Wmaybe-uninitialized]
           u32 idx_rx, idx_tx = 0;
               ^
        /data/users/yhs/work/net-next/samples/bpf/xdpsock_user.c:506:6: warning: ‘idx_rx’ may be used unini
        tialized in this function [-Wmaybe-uninitialized]
          u32 idx_rx, idx_fq = 0;
      
      As an example, the code pattern looks like:
          u32 idx_cq;
          ...
          ret = xsk_ring_prod__reserve(&xsk->umem->fq, rcvd, &idx_fq);
          if (ret) {
            ...
          }
          ... idx_fq ...
      The compiler warns since it does not know whether &idx_fq is assigned
      or not inside the library function xsk_ring_prod__reserve().
      
      Let us assign an initial value 0 to such auto variables to silence
      compiler warning.
      
      Fixes: 248c7f9c ("samples/bpf: convert xdpsock to use libbpf for AF_XDP access")
      Signed-off-by: NYonghong Song <yhs@fb.com>
      Acked-by: NJonathan Lemon <jonathan.lemon@gmail.com>
      Acked-by: NSong Liu <songliubraving@fb.com>
      Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
      b74e21ab
  18. 26 2月, 2019 1 次提交
  19. 02 2月, 2019 2 次提交
  20. 01 9月, 2018 1 次提交
  21. 30 8月, 2018 1 次提交
  22. 27 7月, 2018 2 次提交
  23. 03 7月, 2018 1 次提交