1. 14 May, 2024 33 commits
  2. 13 May, 2024 7 commits
    • Jakub Kicinski's avatar
      Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · 6e62702f
      Jakub Kicinski authored
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf-next 2024-05-13
      
      We've added 119 non-merge commits during the last 14 day(s) which contain
      a total of 134 files changed, 9462 insertions(+), 4742 deletions(-).
      
      The main changes are:
      
      1) Add BPF JIT support for 32-bit ARCv2 processors, from Shahab Vahedi.
      
      2) Add BPF range computation improvements to the verifier in particular
         around XOR and OR operators, refactoring of checks for range computation
         and relaxing MUL range computation so that src_reg can also be an unknown
         scalar, from Cupertino Miranda.
      
      3) Add support to attach kprobe BPF programs through kprobe_multi link in
         a session mode, meaning, a BPF program is attached to both function entry
         and return, the entry program can decide if the return program gets
         executed and the entry program can share u64 cookie value with return
         program. Session mode is a common use-case for tetragon and bpftrace,
         from Jiri Olsa.
      
      4) Fix a potential overflow in libbpf's ring__consume_n() and improve libbpf
         as well as BPF selftest's struct_ops handling, from Andrii Nakryiko.
      
      5) Improvements to BPF selftests in context of BPF gcc backend,
         from Jose E. Marchesi & David Faust.
      
      6) Migrate remaining BPF selftest tests from test_sock_addr.c to prog_test-
         -style in order to retire the old test, run it in BPF CI and additionally
         expand test coverage, from Jordan Rife.
      
      7) Big batch for BPF selftest refactoring in order to remove duplicate code
         around common network helpers, from Geliang Tang.
      
      8) Another batch of improvements to BPF selftests to retire obsolete
         bpf_tcp_helpers.h as everything is available vmlinux.h,
         from Martin KaFai Lau.
      
      9) Fix BPF map tear-down to not walk the map twice on free when both timer
         and wq is used, from Benjamin Tissoires.
      
      10) Fix BPF verifier assumptions about socket->sk that it can be non-NULL,
          from Alexei Starovoitov.
      
      11) Change BTF build scripts to using --btf_features for pahole v1.26+,
          from Alan Maguire.
      
      12) Small improvements to BPF reusing struct_size() and krealloc_array(),
          from Andy Shevchenko.
      
      13) Fix s390 JIT to emit a barrier for BPF_FETCH instructions,
          from Ilya Leoshkevich.
      
      14) Extend TCP ->cong_control() callback in order to feed in ack and
          flag parameters and allow write-access to tp->snd_cwnd_stamp
          from BPF program, from Miao Xu.
      
      15) Add support for internal-only per-CPU instructions to inline
          bpf_get_smp_processor_id() helper call for arm64 and riscv64 BPF JITs,
          from Puranjay Mohan.
      
      16) Follow-up to remove the redundant ethtool.h from tooling infrastructure,
          from Tushar Vyavahare.
      
      17) Extend libbpf to support "module:<function>" syntax for tracing
          programs, from Viktor Malik.
      
      * tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next: (119 commits)
        bpf: make list_for_each_entry portable
        bpf: ignore expected GCC warning in test_global_func10.c
        bpf: disable strict aliasing in test_global_func9.c
        selftests/bpf: Free strdup memory in xdp_hw_metadata
        selftests/bpf: Fix a few tests for GCC related warnings.
        bpf: avoid gcc overflow warning in test_xdp_vlan.c
        tools: remove redundant ethtool.h from tooling infra
        selftests/bpf: Expand ATTACH_REJECT tests
        selftests/bpf: Expand getsockname and getpeername tests
        sefltests/bpf: Expand sockaddr hook deny tests
        selftests/bpf: Expand sockaddr program return value tests
        selftests/bpf: Retire test_sock_addr.(c|sh)
        selftests/bpf: Remove redundant sendmsg test cases
        selftests/bpf: Migrate ATTACH_REJECT test cases
        selftests/bpf: Migrate expected_attach_type tests
        selftests/bpf: Migrate wildcard destination rewrite test
        selftests/bpf: Migrate sendmsg6 v4 mapped address tests
        selftests/bpf: Migrate sendmsg deny test cases
        selftests/bpf: Migrate WILDCARD_IP test
        selftests/bpf: Handle SYSCALL_EPERM and SYSCALL_ENOTSUPP test cases
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20240513134114.17575-1-daniel@iogearbox.netSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      6e62702f
    • Vladimir Oltean's avatar
      net: pcs: lynx: no need to read LPA in lynx_pcs_get_state_2500basex() · afd29f36
      Vladimir Oltean authored
      Nothing useful is done with the LPA variable in lynx_pcs_get_state_2500basex(),
      we can just remove the read.
      Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Link: https://lore.kernel.org/r/20240513115345.2452799-1-vladimir.oltean@nxp.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      afd29f36
    • Jakub Kicinski's avatar
      Merge branch 'mlx5-misc-patches' · d20e391c
      Jakub Kicinski authored
      Tariq Toukan says:
      
      ====================
      mlx5 misc patches
      
      This series includes patches for the mlx5 driver.
      
      Patch 1 by Shay enables LAG with HCAs of 8 ports.
      
      Patch 2 by Carolina optimizes the safe switch channels operation for the
      TX-only changes.
      
      Patch 3 by Parav cleans up some unused code.
      ====================
      
      Link: https://lore.kernel.org/r/20240512124306.740898-1-tariqt@nvidia.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      d20e391c
    • Parav Pandit's avatar
      net/mlx5: Remove unused msix related exported APIs · db5944e1
      Parav Pandit authored
      MSIX irq allocation and free APIs are no longer
      in use. Hence, remove the dead code.
      Signed-off-by: default avatarParav Pandit <parav@nvidia.com>
      Reviewed-by: default avatarDragos Tatulea <dtatulea@nvidia.com>
      Signed-off-by: default avatarTariq Toukan <tariqt@nvidia.com>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Reviewed-by: default avatarKalesh AP <kalesh-anakkur.purayil@broadcom.com>
      Link: https://lore.kernel.org/r/20240512124306.740898-4-tariqt@nvidia.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      db5944e1
    • Carolina Jubran's avatar
      net/mlx5e: Modifying channels number and updating TX queues · bcee0937
      Carolina Jubran authored
      It is not appropriate for the mlx5e_num_channels_changed
      function to be called solely for updating the TX queues,
      even if the channels number has not been changed.
      
      Move the code responsible for updating the TC and TX queues
      from mlx5e_num_channels_changed and produce a new function
      called mlx5e_update_tc_and_tx_queues. This new function should
      only be called when the channels number remains unchanged.
      Signed-off-by: default avatarCarolina Jubran <cjubran@nvidia.com>
      Signed-off-by: default avatarTariq Toukan <tariqt@nvidia.com>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Link: https://lore.kernel.org/r/20240512124306.740898-3-tariqt@nvidia.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      bcee0937
    • Shay Drory's avatar
      net/mlx5: Enable 8 ports LAG · e0e6adfe
      Shay Drory authored
      This patch adds to mlx5 drivers support for 8 ports HCAs.
      Starting with ConnectX-8 HCAs with 8 ports are possible.
      
      As most driver parts aren't affected by such configuration most driver
      code is unchanged.
      
      Specially the only affected areas are:
      - Lag
      - Multiport E-Switch
      - Single FDB E-Switch
      
      All of the above are already factored in generic way, and LAG and VF LAG
      are tested, so all that left is to change a #define and remove checks
      which are no longer needed.
      However, Multiport E-Switch is not tested yet, so it is left untouched.
      
      This patch will allow to create hardware LAG/VF LAG when all 8 ports are
      added to the same bond device.
      
      for example, In order to activate the hardware lag a user can execute
      the following:
      
      ip link add bond0 type bond
      ip link set bond0 type bond miimon 100 mode 2
      ip link set eth2 master bond0
      ip link set eth3 master bond0
      ip link set eth4 master bond0
      ip link set eth5 master bond0
      ip link set eth6 master bond0
      ip link set eth7 master bond0
      ip link set eth8 master bond0
      ip link set eth9 master bond0
      
      Where eth2, eth3, eth4, eth5, eth6, eth7, eth8 and eth9 are the PFs of
      the same HCA.
      Signed-off-by: default avatarShay Drory <shayd@nvidia.com>
      Reviewed-by: default avatarMark Bloch <mbloch@nvidia.com>
      Signed-off-by: default avatarTariq Toukan <tariqt@nvidia.com>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Link: https://lore.kernel.org/r/20240512124306.740898-2-tariqt@nvidia.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e0e6adfe
    • Lukasz Majewski's avatar
      test: hsr: Extend the hsr_redbox.sh to have more SAN devices connected · eafbf057
      Lukasz Majewski authored
      After this change the single SAN device (ns3eth1) is now replaced with
      two SAN devices - respectively ns4eth1 and ns5eth1.
      
      It is possible to extend this script to have more SAN devices connected
      by adding them to ns3br1 bridge.
      Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
      Link: https://lore.kernel.org/r/20240510143710.3916631-1-lukma@denx.deSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      eafbf057