Skip to content

Commit 6843306

Browse files
committed
Merge tag 'net-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from Jakub Kicinski: "Including fixes from bluetooth, bpf and wireguard. Current release - regressions: - nvme-tcp: fix comma-related oops after sendpage changes Current release - new code bugs: - ptp: make max_phase_adjustment sysfs device attribute invisible when not supported Previous releases - regressions: - sctp: fix potential deadlock on &net->sctp.addr_wq_lock - mptcp: - ensure subflow is unhashed before cleaning the backlog - do not rely on implicit state check in mptcp_listen() Previous releases - always broken: - net: fix net_dev_start_xmit trace event vs skb_transport_offset() - Bluetooth: - fix use-bdaddr-property quirk - L2CAP: fix multiple UaFs - ISO: use hci_sync for setting CIG parameters - hci_event: fix Set CIG Parameters error status handling - hci_event: fix parsing of CIS Established Event - MGMT: fix marking SCAN_RSP as not connectable - wireguard: queuing: use saner cpu selection wrapping - sched: act_ipt: various bug fixes for iptables <> TC interactions - sched: act_pedit: add size check for TCA_PEDIT_PARMS_EX - dsa: fixes for receiving PTP packets with 8021q and sja1105 tagging - eth: sfc: fix null-deref in devlink port without MAE access - eth: ibmvnic: do not reset dql stats on NON_FATAL err Misc: - xsk: honor SO_BINDTODEVICE on bind" * tag 'net-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (70 commits) nfp: clean mc addresses in application firmware when closing port selftests: mptcp: pm_nl_ctl: fix 32-bit support selftests: mptcp: depend on SYN_COOKIES selftests: mptcp: userspace_pm: report errors with 'remove' tests selftests: mptcp: userspace_pm: use correct server port selftests: mptcp: sockopt: return error if wrong mark selftests: mptcp: sockopt: use 'iptables-legacy' if available selftests: mptcp: connect: fail if nft supposed to work mptcp: do not rely on implicit state check in mptcp_listen() mptcp: ensure subflow is unhashed before cleaning the backlog s390/qeth: Fix vipa deletion octeontx-af: fix hardware timestamp configuration net: dsa: sja1105: always enable the send_meta options net: dsa: tag_sja1105: fix MAC DA patching from meta frames net: Replace strlcpy with strscpy pptp: Fix fib lookup calls. mlxsw: spectrum_router: Fix an IS_ERR() vs NULL check net/sched: act_pedit: Add size check for TCA_PEDIT_PARMS_EX xsk: Honor SO_BINDTODEVICE on bind ptp: Make max_phase_adjustment sysfs device attribute invisible when not supported ...
2 parents 73a3fcd + cc7eab2 commit 6843306

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+640
-330
lines changed

Documentation/ABI/testing/sysfs-class-net-qmi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Description:
6262
What: /sys/class/net/<iface>/qmi/pass_through
6363
Date: January 2021
6464
KernelVersion: 5.12
65-
Contact: Subash Abhinov Kasiviswanathan <[email protected]>
65+
Contact: Subash Abhinov Kasiviswanathan <[email protected]>
6666
Description:
6767
Boolean. Default: 'N'
6868

Documentation/networking/af_xdp.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,15 @@ start N bytes into the buffer leaving the first N bytes for the
433433
application to use. The final option is the flags field, but it will
434434
be dealt with in separate sections for each UMEM flag.
435435

436+
SO_BINDTODEVICE setsockopt
437+
--------------------------
438+
439+
This is a generic SOL_SOCKET option that can be used to tie AF_XDP
440+
socket to a particular network interface. It is useful when a socket
441+
is created by a privileged process and passed to a non-privileged one.
442+
Once the option is set, kernel will refuse attempts to bind that socket
443+
to a different interface. Updating the value requires CAP_NET_RAW.
444+
436445
XDP_STATISTICS getsockopt
437446
-------------------------
438447

Documentation/networking/device_drivers/cellular/qualcomm/rmnet.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ MAP header|IP Packet|Optional padding|MAP header|Command Packet|Optional pad...
190190
3. Userspace configuration
191191
==========================
192192

193-
rmnet userspace configuration is done through netlink library librmnetctl
194-
and command line utility rmnetcli. Utility is hosted in codeaurora forum git.
195-
The driver uses rtnl_link_ops for communication.
193+
rmnet userspace configuration is done through netlink using iproute2
194+
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/
196195

197-
https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/dataservices/tree/rmnetctl
196+
The driver uses rtnl_link_ops for communication.

Documentation/process/maintainer-netdev.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,11 @@ themselves. No email should ever be sent to the list with the main purpose
149149
of communicating with the bot, the bot commands should be seen as metadata.
150150

151151
The use of the bot is restricted to authors of the patches (the ``From:``
152-
header on patch submission and command must match!), maintainers themselves
153-
and a handful of senior reviewers. Bot records its activity here:
152+
header on patch submission and command must match!), maintainers of
153+
the modified code according to the MAINTAINERS file (again, ``From:``
154+
must match the MAINTAINERS entry) and a handful of senior reviewers.
155+
156+
Bot records its activity here:
154157

155158
https://patchwork.hopto.org/pw-bot.html
156159

drivers/bluetooth/btqca.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
637637
snprintf(config.fwname, sizeof(config.fwname),
638638
"qca/%s", firmware_name);
639639
else if (qca_is_wcn399x(soc_type)) {
640-
if (ver.soc_id == QCA_WCN3991_SOC_ID) {
640+
if (le32_to_cpu(ver.soc_id) == QCA_WCN3991_SOC_ID) {
641641
snprintf(config.fwname, sizeof(config.fwname),
642642
"qca/crnv%02xu.bin", rom_ver);
643643
} else {

drivers/bluetooth/btrtl.c

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,14 +1367,30 @@ MODULE_FIRMWARE("rtl_bt/rtl8723cs_vf_fw.bin");
13671367
MODULE_FIRMWARE("rtl_bt/rtl8723cs_vf_config.bin");
13681368
MODULE_FIRMWARE("rtl_bt/rtl8723cs_xx_fw.bin");
13691369
MODULE_FIRMWARE("rtl_bt/rtl8723cs_xx_config.bin");
1370+
MODULE_FIRMWARE("rtl_bt/rtl8723d_fw.bin");
1371+
MODULE_FIRMWARE("rtl_bt/rtl8723d_config.bin");
13701372
MODULE_FIRMWARE("rtl_bt/rtl8723ds_fw.bin");
13711373
MODULE_FIRMWARE("rtl_bt/rtl8723ds_config.bin");
13721374
MODULE_FIRMWARE("rtl_bt/rtl8761a_fw.bin");
13731375
MODULE_FIRMWARE("rtl_bt/rtl8761a_config.bin");
1376+
MODULE_FIRMWARE("rtl_bt/rtl8761b_fw.bin");
1377+
MODULE_FIRMWARE("rtl_bt/rtl8761b_config.bin");
1378+
MODULE_FIRMWARE("rtl_bt/rtl8761bu_fw.bin");
1379+
MODULE_FIRMWARE("rtl_bt/rtl8761bu_config.bin");
13741380
MODULE_FIRMWARE("rtl_bt/rtl8821a_fw.bin");
13751381
MODULE_FIRMWARE("rtl_bt/rtl8821a_config.bin");
1382+
MODULE_FIRMWARE("rtl_bt/rtl8821c_fw.bin");
1383+
MODULE_FIRMWARE("rtl_bt/rtl8821c_config.bin");
1384+
MODULE_FIRMWARE("rtl_bt/rtl8821cs_fw.bin");
1385+
MODULE_FIRMWARE("rtl_bt/rtl8821cs_config.bin");
13761386
MODULE_FIRMWARE("rtl_bt/rtl8822b_fw.bin");
13771387
MODULE_FIRMWARE("rtl_bt/rtl8822b_config.bin");
1388+
MODULE_FIRMWARE("rtl_bt/rtl8822cs_fw.bin");
1389+
MODULE_FIRMWARE("rtl_bt/rtl8822cs_config.bin");
1390+
MODULE_FIRMWARE("rtl_bt/rtl8822cu_fw.bin");
1391+
MODULE_FIRMWARE("rtl_bt/rtl8822cu_config.bin");
1392+
MODULE_FIRMWARE("rtl_bt/rtl8851bu_fw.bin");
1393+
MODULE_FIRMWARE("rtl_bt/rtl8851bu_config.bin");
13781394
MODULE_FIRMWARE("rtl_bt/rtl8852au_fw.bin");
13791395
MODULE_FIRMWARE("rtl_bt/rtl8852au_config.bin");
13801396
MODULE_FIRMWARE("rtl_bt/rtl8852bs_fw.bin");
@@ -1383,5 +1399,3 @@ MODULE_FIRMWARE("rtl_bt/rtl8852bu_fw.bin");
13831399
MODULE_FIRMWARE("rtl_bt/rtl8852bu_config.bin");
13841400
MODULE_FIRMWARE("rtl_bt/rtl8852cu_fw.bin");
13851401
MODULE_FIRMWARE("rtl_bt/rtl8852cu_config.bin");
1386-
MODULE_FIRMWARE("rtl_bt/rtl8851bu_fw.bin");
1387-
MODULE_FIRMWARE("rtl_bt/rtl8851bu_config.bin");

drivers/bluetooth/btusb.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,9 @@ static const struct usb_device_id blacklist_table[] = {
613613
{ USB_DEVICE(0x0489, 0xe0d9), .driver_info = BTUSB_MEDIATEK |
614614
BTUSB_WIDEBAND_SPEECH |
615615
BTUSB_VALID_LE_STATES },
616+
{ USB_DEVICE(0x0489, 0xe0f5), .driver_info = BTUSB_MEDIATEK |
617+
BTUSB_WIDEBAND_SPEECH |
618+
BTUSB_VALID_LE_STATES },
616619
{ USB_DEVICE(0x13d3, 0x3568), .driver_info = BTUSB_MEDIATEK |
617620
BTUSB_WIDEBAND_SPEECH |
618621
BTUSB_VALID_LE_STATES },
@@ -655,6 +658,8 @@ static const struct usb_device_id blacklist_table[] = {
655658
BTUSB_WIDEBAND_SPEECH },
656659
{ USB_DEVICE(0x0bda, 0x8771), .driver_info = BTUSB_REALTEK |
657660
BTUSB_WIDEBAND_SPEECH },
661+
{ USB_DEVICE(0x6655, 0x8771), .driver_info = BTUSB_REALTEK |
662+
BTUSB_WIDEBAND_SPEECH },
658663
{ USB_DEVICE(0x7392, 0xc611), .driver_info = BTUSB_REALTEK |
659664
BTUSB_WIDEBAND_SPEECH },
660665
{ USB_DEVICE(0x2b89, 0x8761), .driver_info = BTUSB_REALTEK |

drivers/bluetooth/hci_bcm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,8 @@ static int bcm_setup(struct hci_uart *hu)
643643
* Allow the bootloader to set a valid address through the
644644
* device tree.
645645
*/
646-
set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hu->hdev->quirks);
646+
if (test_bit(HCI_QUIRK_INVALID_BDADDR, &hu->hdev->quirks))
647+
set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hu->hdev->quirks);
647648

648649
if (!bcm_request_irq(bcm))
649650
err = bcm_setup_sleep(hu);

drivers/net/dsa/ocelot/felix.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,18 @@ static bool felix_rxtstamp(struct dsa_switch *ds, int port,
17251725
u32 tstamp_hi;
17261726
u64 tstamp;
17271727

1728+
switch (type & PTP_CLASS_PMASK) {
1729+
case PTP_CLASS_L2:
1730+
if (!(ocelot->ports[port]->trap_proto & OCELOT_PROTO_PTP_L2))
1731+
return false;
1732+
break;
1733+
case PTP_CLASS_IPV4:
1734+
case PTP_CLASS_IPV6:
1735+
if (!(ocelot->ports[port]->trap_proto & OCELOT_PROTO_PTP_L4))
1736+
return false;
1737+
break;
1738+
}
1739+
17281740
/* If the "no XTR IRQ" workaround is in use, tell DSA to defer this skb
17291741
* for RX timestamping. Then free it, and poll for its copy through
17301742
* MMIO in the CPU port module, and inject that into the stack from

drivers/net/dsa/sja1105/sja1105.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ struct sja1105_private {
252252
unsigned long ucast_egress_floods;
253253
unsigned long bcast_egress_floods;
254254
unsigned long hwts_tx_en;
255+
unsigned long hwts_rx_en;
255256
const struct sja1105_info *info;
256257
size_t max_xfer_len;
257258
struct spi_device *spidev;
@@ -289,7 +290,6 @@ struct sja1105_spi_message {
289290
/* From sja1105_main.c */
290291
enum sja1105_reset_reason {
291292
SJA1105_VLAN_FILTERING = 0,
292-
SJA1105_RX_HWTSTAMPING,
293293
SJA1105_AGEING_TIME,
294294
SJA1105_SCHEDULING,
295295
SJA1105_BEST_EFFORT_POLICING,

0 commit comments

Comments
 (0)