1. 26 Aug, 2023 8 commits
    • Russell King (Oracle)'s avatar
      net: stmmac: use "mdio_bus_data" local variable · 2b070cdd
      Russell King (Oracle) authored
      We have a local variable for priv->plat->mdio_bus_data, which we use
      later in the conditional if() block, but we evaluate the above within
      the conditional expression. Use mdio_bus_data instead. Since these
      will be the only two users of this local variable, move its assignment
      just before the if().
      Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
      Link: https://lore.kernel.org/r/E1qZAXJ-005pU1-1z@rmk-PC.armlinux.org.ukSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      2b070cdd
    • Russell King (Oracle)'s avatar
      net: stmmac: clean up passing fwnode to phylink · 1a37c1c1
      Russell King (Oracle) authored
      Move the initialisation of the fwnode variable closer to its use
      site, rather than scattered throughout stmmac_phy_setup().
      Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
      Link: https://lore.kernel.org/r/E1qZAXD-005pTv-TN@rmk-PC.armlinux.org.ukSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      1a37c1c1
    • Russell King (Oracle)'s avatar
      net: stmmac: convert plat->phylink_node to fwnode · e80af2ac
      Russell King (Oracle) authored
      All users of plat->phylink_node first convert it to a fwnode. Rather
      than repeatedly convert to a fwnode, store it as a fwnode. To reflect
      this change, call it plat->port_node instead - it is used for more
      than just phylink.
      Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
      Link: https://lore.kernel.org/r/E1qZAX8-005pTo-OT@rmk-PC.armlinux.org.ukSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e80af2ac
    • Russell King (Oracle)'s avatar
      net: phylink: add phylink_limit_mac_speed() · 70934c7c
      Russell King (Oracle) authored
      Add a function which can be used to limit the phylink MAC capabilities
      to an upper speed limit.
      Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
      Link: https://lore.kernel.org/r/E1qZAX3-005pTi-K1@rmk-PC.armlinux.org.ukSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      70934c7c
    • Liang Chen's avatar
      veth: Avoid NAPI scheduling on failed SKB forwarding · 215eb9f9
      Liang Chen authored
      When an skb fails to be forwarded to the peer(e.g., skb data buffer
      length exceeds MTU), it will not be added to the peer's receive queue.
      Therefore, we should schedule the peer's NAPI poll function only when
      skb forwarding is successful to avoid unnecessary overhead.
      Signed-off-by: default avatarLiang Chen <liangchen.linux@gmail.com>
      Link: https://lore.kernel.org/r/20230824123131.7673-1-liangchen.linux@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      215eb9f9
    • Jakub Kicinski's avatar
      Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · bebfbf07
      Jakub Kicinski authored
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf-next 2023-08-25
      
      We've added 87 non-merge commits during the last 8 day(s) which contain
      a total of 104 files changed, 3719 insertions(+), 4212 deletions(-).
      
      The main changes are:
      
      1) Add multi uprobe BPF links for attaching multiple uprobes
         and usdt probes, which is significantly faster and saves extra fds,
         from Jiri Olsa.
      
      2) Add support BPF cpu v4 instructions for arm64 JIT compiler,
         from Xu Kuohai.
      
      3) Add support BPF cpu v4 instructions for riscv64 JIT compiler,
         from Pu Lehui.
      
      4) Fix LWT BPF xmit hooks wrt their return values where propagating
         the result from skb_do_redirect() would trigger a use-after-free,
         from Yan Zhai.
      
      5) Fix a BPF verifier issue related to bpf_kptr_xchg() with local kptr
         where the map's value kptr type and locally allocated obj type
         mismatch, from Yonghong Song.
      
      6) Fix BPF verifier's check_func_arg_reg_off() function wrt graph
         root/node which bypassed reg->off == 0 enforcement,
         from Kumar Kartikeya Dwivedi.
      
      7) Lift BPF verifier restriction in networking BPF programs to treat
         comparison of packet pointers not as a pointer leak,
         from Yafang Shao.
      
      8) Remove unmaintained XDP BPF samples as they are maintained
         in xdp-tools repository out of tree, from Toke Høiland-Jørgensen.
      
      9) Batch of fixes for the tracing programs from BPF samples in order
         to make them more libbpf-aware, from Daniel T. Lee.
      
      10) Fix a libbpf signedness determination bug in the CO-RE relocation
          handling logic, from Andrii Nakryiko.
      
      11) Extend libbpf to support CO-RE kfunc relocations. Also follow-up
          fixes for bpf_refcount shared ownership implementation,
          both from Dave Marchevsky.
      
      12) Add a new bpf_object__unpin() API function to libbpf,
          from Daniel Xu.
      
      13) Fix a memory leak in libbpf to also free btf_vmlinux
          when the bpf_object gets closed, from Hao Luo.
      
      14) Small error output improvements to test_bpf module, from Helge Deller.
      
      * tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next: (87 commits)
        selftests/bpf: Add tests for rbtree API interaction in sleepable progs
        bpf: Allow bpf_spin_{lock,unlock} in sleepable progs
        bpf: Consider non-owning refs to refcounted nodes RCU protected
        bpf: Reenable bpf_refcount_acquire
        bpf: Use bpf_mem_free_rcu when bpf_obj_dropping refcounted nodes
        bpf: Consider non-owning refs trusted
        bpf: Ensure kptr_struct_meta is non-NULL for collection insert and refcount_acquire
        selftests/bpf: Enable cpu v4 tests for RV64
        riscv, bpf: Support unconditional bswap insn
        riscv, bpf: Support signed div/mod insns
        riscv, bpf: Support 32-bit offset jmp insn
        riscv, bpf: Support sign-extension mov insns
        riscv, bpf: Support sign-extension load insns
        riscv, bpf: Fix missing exception handling and redundant zext for LDX_B/H/W
        samples/bpf: Add note to README about the XDP utilities moved to xdp-tools
        samples/bpf: Cleanup .gitignore
        samples/bpf: Remove the xdp_sample_pkts utility
        samples/bpf: Remove the xdp1 and xdp2 utilities
        samples/bpf: Remove the xdp_rxq_info utility
        samples/bpf: Remove the xdp_redirect* utilities
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20230825194319.12727-1-daniel@iogearbox.netSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      bebfbf07
    • Jakub Kicinski's avatar
      Merge tag 'wireless-next-2023-08-25' of... · 1fa6ffad
      Jakub Kicinski authored
      Merge tag 'wireless-next-2023-08-25' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next
      
      Kalle Valo says:
      
      ====================
      wireless-next patches for v6.6
      
      The second pull request for v6.6, this time with both stack and driver
      changes. Unusually we have only one major new feature but lots of
      small cleanup all over, I guess this is due to people have been on
      vacation the last month.
      
      Major changes:
      
      rtw89
       - Introduce Time Averaged SAR (TAS) support
      
      * tag 'wireless-next-2023-08-25' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next: (114 commits)
        wifi: rtlwifi: rtl8723: Remove unused function rtl8723_cmd_send_packet()
        wifi: rtw88: usb: kill and free rx urbs on probe failure
        wifi: rtw89: Fix clang -Wimplicit-fallthrough in rtw89_query_sar()
        wifi: rtw89: phy: modify register setting of ENV_MNTR, PHYSTS and DIG
        wifi: rtw89: phy: add phy_gen_def::cr_base to support WiFi 7 chips
        wifi: rtw89: mac: define register address of rx_filter to generalize code
        wifi: rtw89: mac: define internal memory address for WiFi 7 chip
        wifi: rtw89: mac: generalize code to indirectly access WiFi internal memory
        wifi: rtw89: mac: add mac_gen_def::band1_offset to map MAC band1 register address
        wifi: wlcore: sdio: Use module_sdio_driver macro to simplify the code
        wifi: rtw89: initialize multi-channel handling
        wifi: rtw89: provide functions to configure NoA for beacon update
        wifi: rtw89: call rtw89_chan_get() by vif chanctx if aware of vif
        wifi: rtw89: sar: let caller decide the center frequency to query
        wifi: rtw89: refine rtw89_correct_cck_chan() by rtw89_hw_to_nl80211_band()
        wifi: rtw89: add function prototype for coex request duration
        Fix nomenclature for USB and PCI wireless devices
        wifi: ath: Use is_multicast_ether_addr() to check multicast Ether address
        wifi: ath12k: Remove unused declarations
        wifi: ath12k: add check max message length while scanning with extraie
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20230825132230.A0833C433C8@smtp.kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      1fa6ffad
    • Jakub Kicinski's avatar
      Merge tag 'for-net-next-2023-08-24' of... · 3db34747
      Jakub Kicinski authored
      Merge tag 'for-net-next-2023-08-24' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
      
      Luiz Augusto von Dentz says:
      
      ====================
      bluetooth-next pull request for net-next:
      
       - Introduce HCI_QUIRK_BROKEN_LE_CODED
       - Add support for PA/BIG sync
       - Add support for NXP IW624 chipset
       - Add support for Qualcomm WCN7850
      
      * tag 'for-net-next-2023-08-24' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next:
        Bluetooth: btusb: Do not call kfree_skb() under spin_lock_irqsave()
        Bluetooth: btusb: Fix quirks table naming
        Bluetooth: HCI: Introduce HCI_QUIRK_BROKEN_LE_CODED
        Bluetooth: btintel: Send new command for PPAG
        Bluetooth: ISO: Add support for periodic adv reports processing
        Bluetooth: hci_conn: fail SCO/ISO via hci_conn_failed if ACL gone early
        Bluetooth: hci_core: Fix missing instances using HCI_MAX_AD_LENGTH
        Bluetooth: ISO: Use defer setup to separate PA sync and BIG sync
        Bluetooth: qca: add support for WCN7850
        Bluetooth: qca: use switch case for soc type behavior
        dt-bindings: net: bluetooth: qualcomm: document WCN7850 chipset
        Bluetooth: hci_conn: Fix sending BT_HCI_CMD_LE_CREATE_CONN_CANCEL
        Bluetooth: hci_sync: Fix UAF in hci_disconnect_all_sync
        Bluetooth: btnxpuart: Improve inband Independent Reset handling
        Bluetooth: btnxpuart: Add support for IW624 chipset
        Bluetooth: btnxpuart: Remove check for CTS low after FW download
      ====================
      
      Link: https://lore.kernel.org/r/20230824201458.2577-1-luiz.dentz@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      3db34747
  2. 25 Aug, 2023 32 commits