1. 27 Oct, 2023 5 commits
    • Jakub Kicinski's avatar
      Merge tag 'for-netdev' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · c6f9b713
      Jakub Kicinski authored
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf-next 2023-10-26
      
      We've added 51 non-merge commits during the last 10 day(s) which contain
      a total of 75 files changed, 5037 insertions(+), 200 deletions(-).
      
      The main changes are:
      
      1) Add open-coded task, css_task and css iterator support.
         One of the use cases is customizable OOM victim selection via BPF,
         from Chuyi Zhou.
      
      2) Fix BPF verifier's iterator convergence logic to use exact states
         comparison for convergence checks, from Eduard Zingerman,
         Andrii Nakryiko and Alexei Starovoitov.
      
      3) Add BPF programmable net device where bpf_mprog defines the logic
         of its xmit routine. It can operate in L3 and L2 mode,
         from Daniel Borkmann and Nikolay Aleksandrov.
      
      4) Batch of fixes for BPF per-CPU kptr and re-enable unit_size checking
         for global per-CPU allocator, from Hou Tao.
      
      5) Fix libbpf which eagerly assumed that SHT_GNU_verdef ELF section
         was going to be present whenever a binary has SHT_GNU_versym section,
         from Andrii Nakryiko.
      
      6) Fix BPF ringbuf correctness to fold smp_mb__before_atomic() into
         atomic_set_release(), from Paul E. McKenney.
      
      7) Add a warning if NAPI callback missed xdp_do_flush() under
         CONFIG_DEBUG_NET which helps checking if drivers were missing
         the former, from Sebastian Andrzej Siewior.
      
      8) Fix missed RCU read-lock in bpf_task_under_cgroup() which was throwing
         a warning under sleepable programs, from Yafang Shao.
      
      9) Avoid unnecessary -EBUSY from htab_lock_bucket by disabling IRQ before
         checking map_locked, from Song Liu.
      
      10) Make BPF CI linked_list failure test more robust,
          from Kumar Kartikeya Dwivedi.
      
      11) Enable samples/bpf to be built as PIE in Fedora, from Viktor Malik.
      
      12) Fix xsk starving when multiple xsk sockets were associated with
          a single xsk_buff_pool, from Albert Huang.
      
      13) Clarify the signed modulo implementation for the BPF ISA standardization
          document that it uses truncated division, from Dave Thaler.
      
      14) Improve BPF verifier's JEQ/JNE branch taken logic to also consider
          signed bounds knowledge, from Andrii Nakryiko.
      
      15) Add an option to XDP selftests to use multi-buffer AF_XDP
          xdp_hw_metadata and mark used XDP programs as capable to use frags,
          from Larysa Zaremba.
      
      16) Fix bpftool's BTF dumper wrt printing a pointer value and another
          one to fix struct_ops dump in an array, from Manu Bretelle.
      
      * tag 'for-netdev' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next: (51 commits)
        netkit: Remove explicit active/peer ptr initialization
        selftests/bpf: Fix selftests broken by mitigations=off
        samples/bpf: Allow building with custom bpftool
        samples/bpf: Fix passing LDFLAGS to libbpf
        samples/bpf: Allow building with custom CFLAGS/LDFLAGS
        bpf: Add more WARN_ON_ONCE checks for mismatched alloc and free
        selftests/bpf: Add selftests for netkit
        selftests/bpf: Add netlink helper library
        bpftool: Extend net dump with netkit progs
        bpftool: Implement link show support for netkit
        libbpf: Add link-based API for netkit
        tools: Sync if_link uapi header
        netkit, bpf: Add bpf programmable net device
        bpf: Improve JEQ/JNE branch taken logic
        bpf: Fold smp_mb__before_atomic() into atomic_set_release()
        bpf: Fix unnecessary -EBUSY from htab_lock_bucket
        xsk: Avoid starving the xsk further down the list
        bpf: print full verifier states on infinite loop detection
        selftests/bpf: test if state loops are detected in a tricky case
        bpf: correct loop detection for iterators convergence
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20231026150509.2824-1-daniel@iogearbox.netSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      c6f9b713
    • Alexey Makhalov's avatar
      MAINTAINERS: Maintainer change for ptp_vmw driver · cc33a80b
      Alexey Makhalov authored
      Deep has decided to transfer the maintainership of the VMware virtual
      PTP clock driver (ptp_vmw) to Jeff. Update the MAINTAINERS file to
      reflect this change.
      Signed-off-by: default avatarAlexey Makhalov <amakhalov@vmware.com>
      Acked-by: default avatarDeep Shah <sdeep@vmware.com>
      Acked-by: default avatarJeff Sipek <jsipek@vmware.com>
      Link: https://lore.kernel.org/r/20231025231931.76842-1-amakhalov@vmware.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      cc33a80b
    • Michael Chan's avatar
      bnxt_en: Fix 2 stray ethtool -S counters · 9cfe8cf5
      Michael Chan authored
      The recent firmware interface change has added 2 counters in struct
      rx_port_stats_ext. This caused 2 stray ethtool counters to be
      displayed.
      
      Since new counters are added from time to time, fix it so that the
      ethtool logic will only display up to the maximum known counters.
      These 2 counters are not used by production firmware yet.
      
      Fixes: 754fbf60 ("bnxt_en: Update firmware interface to 1.10.2.171")
      Reviewed-by: default avatarAjit Khaparde <ajit.khaparde@broadcom.com>
      Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
      Link: https://lore.kernel.org/r/20231026013231.53271-1-michael.chan@broadcom.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      9cfe8cf5
    • Jakub Kicinski's avatar
      tools: ynl-gen: respect attr-cnt-name at the attr set level · eb9df668
      Jakub Kicinski authored
      Davide reports that we look for the attr-cnt-name in the wrong
      object. We try to read it from the family, but the schema only
      allows for it to exist at attr-set level.
      Reported-by: default avatarDavide Caratti <dcaratti@redhat.com>
      Link: https://lore.kernel.org/all/CAKa-r6vCj+gPEUKpv7AsXqM77N6pB0evuh7myHq=585RA3oD5g@mail.gmail.com/Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
      Link: https://lore.kernel.org/r/20231025182739.184706-1-kuba@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      eb9df668
    • Jakub Kicinski's avatar
      netlink: specs: support conditional operations · bc30bb88
      Jakub Kicinski authored
      Page pool code is compiled conditionally, but the operations
      are part of the shared netlink family. We can handle this
      by reporting empty list of pools or -EOPNOTSUPP / -ENOSYS
      but the cleanest way seems to be removing the ops completely
      at compilation time. That way user can see that the page
      pool ops are not present using genetlink introspection.
      Same way they'd check if the kernel is "new enough" to
      support the ops.
      
      Extend the specs with the ability to specify the config
      condition under which op (and its policies, etc.) should
      be hidden.
      Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
      Link: https://lore.kernel.org/r/20231025162253.133159-1-kuba@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      bc30bb88
  2. 26 Oct, 2023 22 commits
  3. 25 Oct, 2023 13 commits