mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-01 11:36:49 +00:00
b389c3d66f
Manually adapted: bcm27xx/patches-5.15/950-0166-xhci-Use-more-event-ring-segment-table-entries.patch I replaced it with the version from main branch which applies more easily bcm27xx/patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch bcm27xx/patches-5.15/950-0605-xhci-refactor-out-TRBS_PER_SEGMENT-define-in-runtime.patch bcm27xx/patches-5.15/950-0606-usb-xhci-add-VLI_TRB_CACHE_BUG-quirk.patch bcm27xx/patches-5.15/950-0717-usb-xhci-add-a-quirk-for-Superspeed-bulk-OUT-transfe.patch bcm53xx/patches-5.15/180-usb-xhci-add-support-for-performing-fake-doorbell.patch generic/hack-5.15/645-netfilter-connmark-introduce-set-dscpmark.patch Added patch: generic/backport-5.15/777-netfilter-xtables-fix-typo-causing-some-targets-to-not-load-on-IPv6.patch This fixes a bug intoduced in this version. Adapt kernel configuration for newly added option CONFIG_PROC_MEM_ALWAYS_FORCE. Link: https://github.com/openwrt/openwrt/pull/16882 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
From 3e65efcca87a9bb5f3b864e0a43d167bc0a8688c Mon Sep 17 00:00:00 2001
|
|
From: Foster Snowhill <forst@pen.gy>
|
|
Date: Wed, 7 Jun 2023 15:57:00 +0200
|
|
Subject: [PATCH 2/4] usbnet: ipheth: transmit URBs without trailing padding
|
|
|
|
The behaviour of the official iOS tethering driver on macOS is to not
|
|
transmit any trailing padding at the end of URBs. This is applicable
|
|
to both NCM and legacy modes, including older devices.
|
|
|
|
Adapt the driver to not include trailing padding in TX URBs, matching
|
|
the behaviour of the official macOS driver.
|
|
|
|
Signed-off-by: Foster Snowhill <forst@pen.gy>
|
|
Tested-by: Georgi Valkov <gvalkov@gmail.com>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
---
|
|
drivers/net/usb/ipheth.c | 4 +---
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
|
--- a/drivers/net/usb/ipheth.c
|
|
+++ b/drivers/net/usb/ipheth.c
|
|
@@ -374,12 +374,10 @@ static netdev_tx_t ipheth_tx(struct sk_b
|
|
}
|
|
|
|
memcpy(dev->tx_buf, skb->data, skb->len);
|
|
- if (skb->len < IPHETH_BUF_SIZE)
|
|
- memset(dev->tx_buf + skb->len, 0, IPHETH_BUF_SIZE - skb->len);
|
|
|
|
usb_fill_bulk_urb(dev->tx_urb, udev,
|
|
usb_sndbulkpipe(udev, dev->bulk_out),
|
|
- dev->tx_buf, IPHETH_BUF_SIZE,
|
|
+ dev->tx_buf, skb->len,
|
|
ipheth_sndbulk_callback,
|
|
dev);
|
|
dev->tx_urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
|