forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: linux-atm: add kernel 5.19 support r8168: add kernel 5.19 support r8152: add kernel 5.19 support r8125: add kernel 5.19 support x86: fix 5.19 modules.mk Update README.md x86: switch test kernel to 5.19 Version update to R22.8.2 Update README.md Update README.md linux: fix 5.19 patch build error libcap: update to 2.65 libcap: update to 2.64 mtools: update to 4.0.40
- Loading branch information
Showing
13 changed files
with
194 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- a/src/r8125_n.c | ||
+++ b/src/r8125_n.c | ||
@@ -116,6 +116,15 @@ | ||
#define FIRMWARE_8168FP_3 "rtl_nic/rtl8168fp-3.fw" | ||
#define FIRMWARE_8168FP_4 "rtl_nic/rtl8168fp-4.fw" | ||
|
||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) | ||
+static inline void netif_set_gso_max_size(struct net_device *dev, | ||
+ unsigned int size) | ||
+{ | ||
+ /* dev->gso_max_size is read locklessly from sk_setup_caps() */ | ||
+ WRITE_ONCE(dev->gso_max_size, size); | ||
+} | ||
+#endif | ||
+ | ||
/* Maximum number of multicast addresses to filter (vs. Rx-all-multicast). | ||
The RTL chips use a 64 element hash table based on the Ethernet CRC. */ | ||
static const int multicast_filter_limit = 32; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- a/r8152.c | ||
+++ b/r8152.c | ||
@@ -1026,6 +1026,16 @@ | ||
#define RTL_ADVERTISED_1000_FULL BIT(5) | ||
#define RTL_ADVERTISED_2500_FULL BIT(6) | ||
|
||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) | ||
+static inline void netif_set_gso_max_size(struct net_device *dev, | ||
+ unsigned int size) | ||
+{ | ||
+ /* dev->gso_max_size is read locklessly from sk_setup_caps() */ | ||
+ WRITE_ONCE(dev->gso_max_size, size); | ||
+} | ||
+#endif | ||
+ | ||
+ | ||
/* Maximum number of multicast addresses to filter (vs. Rx-all-multicast). | ||
* The RTL chips use a 64 element hash table based on the Ethernet CRC. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- a/src/r8168_n.c | ||
+++ b/src/r8168_n.c | ||
@@ -116,6 +116,15 @@ | ||
#define FIRMWARE_8168FP_3 "rtl_nic/rtl8168fp-3.fw" | ||
#define FIRMWARE_8168FP_4 "rtl_nic/rtl8168fp-4.fw" | ||
|
||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) | ||
+static inline void netif_set_gso_max_size(struct net_device *dev, | ||
+ unsigned int size) | ||
+{ | ||
+ /* dev->gso_max_size is read locklessly from sk_setup_caps() */ | ||
+ WRITE_ONCE(dev->gso_max_size, size); | ||
+} | ||
+#endif | ||
+ | ||
/* Maximum number of multicast addresses to filter (vs. Rx-all-multicast). | ||
The RTL chips use a 64 element hash table based on the Ethernet CRC. */ | ||
static const int multicast_filter_limit = 32; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,12 @@ | |
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=libcap | ||
PKG_VERSION:=2.63 | ||
PKG_VERSION:=2.65 | ||
PKG_RELEASE:=$(AUTORELEASE) | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | ||
PKG_SOURCE_URL:=@KERNEL/linux/libs/security/linux-privs/libcap2 | ||
PKG_HASH:=0c637b8f44fc7d8627787e9cf57f15ac06c1ddccb53e41feec5496be3466f77f | ||
PKG_HASH:=73e350020cc31fe15360879d19384ffa3395a825f065fcf6bda3a5cdf965bebd | ||
|
||
PKG_MAINTAINER:=Paul Wassi <[email protected]> | ||
PKG_LICENSE:=GPL-2.0-only | ||
|
17 changes: 17 additions & 0 deletions
17
package/network/utils/linux-atm/patches/900-add_5.19_support.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- a/src/maint/Makefile.am | ||
+++ b/src/maint/Makefile.am | ||
@@ -1,5 +1,5 @@ | ||
BOOTPGMS=atmaddr esi | ||
-SYSPGMS=atmloop atmtcp enitune zntune hediag # nstune | ||
+SYSPGMS=atmloop atmtcp enitune hediag # nstune | ||
USRPGMS=atmdiag atmdump sonetdiag saaldump | ||
|
||
INCLUDES=-I$(srcdir)/../q2931 -I$(srcdir)/../saal -I. | ||
@@ -14,7 +14,6 @@ esi_SOURCES = esi.c | ||
atmloop_SOURCES = atmloop.c | ||
atmtcp_SOURCES = atmtcp.c | ||
enitune_SOURCES = enitune.c | ||
-zntune_SOURCES = zntune.c | ||
#nstune_SOURCES = nstune.c | ||
|
||
atmdiag_SOURCES = atmdiag.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
From e3692cb2fcd5ba1244512a0f43b8118f65f1c375 Mon Sep 17 00:00:00 2001 | ||
From: Felix Fietkau <[email protected]> | ||
Date: Sat, 8 Jul 2017 08:20:43 +0200 | ||
Subject: debloat: dmabuf | ||
|
||
Signed-off-by: Felix Fietkau <[email protected]> | ||
--- | ||
drivers/base/Kconfig | 2 +- | ||
drivers/dma-buf/Makefile | 10 +++++++--- | ||
drivers/dma-buf/dma-buf.c | 4 +++- | ||
kernel/sched/core.c | 1 + | ||
4 files changed, 12 insertions(+), 5 deletions(-) | ||
|
||
--- a/drivers/base/Kconfig | ||
+++ b/drivers/base/Kconfig | ||
@@ -198,7 +198,7 @@ config SOC_BUS | ||
source "drivers/base/regmap/Kconfig" | ||
|
||
config DMA_SHARED_BUFFER | ||
- bool | ||
+ tristate | ||
default n | ||
select IRQ_WORK | ||
help | ||
--- a/drivers/dma-buf/heaps/Makefile | ||
+++ b/drivers/dma-buf/heaps/Makefile | ||
@@ -1,3 +1,3 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
-obj-$(CONFIG_DMABUF_HEAPS_SYSTEM) += system_heap.o | ||
-obj-$(CONFIG_DMABUF_HEAPS_CMA) += cma_heap.o | ||
+dma-buf-objs-$(CONFIG_DMABUF_HEAPS_SYSTEM) += system_heap.o | ||
+dma-buf-objs-$(CONFIG_DMABUF_HEAPS_CMA) += cma_heap.o | ||
--- a/drivers/dma-buf/Makefile | ||
+++ b/drivers/dma-buf/Makefile | ||
@@ -1,12 +1,14 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
-obj-y := dma-buf.o dma-fence.o dma-fence-array.o dma-fence-chain.o \ | ||
+obj-$(CONFIG_DMA_SHARED_BUFFER) := dma-shared-buffer.o | ||
+ | ||
+dma-buf-objs-y := dma-buf.o dma-fence.o dma-fence-array.o dma-fence-chain.o \ | ||
dma-resv.o | ||
-obj-$(CONFIG_DMABUF_HEAPS) += dma-heap.o | ||
-obj-$(CONFIG_DMABUF_HEAPS) += heaps/ | ||
-obj-$(CONFIG_SYNC_FILE) += sync_file.o | ||
-obj-$(CONFIG_SW_SYNC) += sw_sync.o sync_debug.o | ||
-obj-$(CONFIG_UDMABUF) += udmabuf.o | ||
-obj-$(CONFIG_DMABUF_SYSFS_STATS) += dma-buf-sysfs-stats.o | ||
+dma-buf-objs-$(CONFIG_DMABUF_HEAPS) += dma-heap.o | ||
+obj-$(CONFIG_DMABUF_HEAPS) += heaps/ | ||
+dma-buf-objs-$(CONFIG_SYNC_FILE) += sync_file.o | ||
+dma-buf-objs-$(CONFIG_SW_SYNC) += sw_sync.o sync_debug.o | ||
+dma-buf-objs-$(CONFIG_UDMABUF) += udmabuf.o | ||
+dma-buf-objs-$(CONFIG_DMABUF_SYSFS_STATS) += udmabuf.o | ||
|
||
dmabuf_selftests-y := \ | ||
selftest.o \ | ||
@@ -15,4 +17,6 @@ dmabuf_selftests-y := \ | ||
st-dma-fence-unwrap.o \ | ||
st-dma-resv.o | ||
|
||
-obj-$(CONFIG_DMABUF_SELFTESTS) += dmabuf_selftests.o | ||
+dma-buf-objs-$(CONFIG_DMABUF_SELFTESTS) += dmabuf_selftests.o | ||
+ | ||
+dma-shared-buffer-objs := $(dma-buf-objs-y) | ||
--- a/drivers/dma-buf/dma-buf.c | ||
+++ b/drivers/dma-buf/dma-buf.c | ||
@@ -1459,4 +1459,5 @@ static void __exit dma_buf_deinit(void) | ||
kern_unmount(dma_buf_mnt); | ||
dma_buf_uninit_sysfs_statistics(); | ||
} | ||
-__exitcall(dma_buf_deinit); | ||
+module_exit(dma_buf_deinit); | ||
+MODULE_LICENSE("GPL"); | ||
--- a/kernel/sched/core.c | ||
+++ b/kernel/sched/core.c | ||
@@ -4287,6 +4287,7 @@ int wake_up_state(struct task_struct *p, | ||
{ | ||
return try_to_wake_up(p, state, 0); | ||
} | ||
+EXPORT_SYMBOL_GPL(wake_up_state); | ||
|
||
/* | ||
* Perform scheduler related setup for a newly forked process p. | ||
--- a/fs/d_path.c | ||
+++ b/fs/d_path.c | ||
@@ -314,6 +314,7 @@ char *dynamic_dname(struct dentry *dentr | ||
buffer += buflen - sz; | ||
return memcpy(buffer, temp, sz); | ||
} | ||
+EXPORT_SYMBOL_GPL(dynamic_dname); | ||
|
||
char *simple_dname(struct dentry *dentry, char *buffer, int buflen) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,32 +53,31 @@ Signed-off-by: Zhi Chen <[email protected]> | |
|
||
e = nf_ct_ecache_find(ct); | ||
if (e == NULL) | ||
@@ -128,10 +135,12 @@ nf_conntrack_event_report(enum ip_conntr | ||
@@ -117,20 +124,24 @@ | ||
u32 portid, int report) | ||
{ | ||
#ifdef CONFIG_NF_CONNTRACK_EVENTS | ||
+#ifndef CONFIG_NF_CONNTRACK_CHAIN_EVENTS | ||
const struct net *net = nf_ct_net(ct); | ||
|
||
if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) | ||
return 0; | ||
if (nf_ct_ecache_exist(ct)) | ||
return nf_conntrack_eventmask_report(1 << event, ct, portid, report); | ||
#endif | ||
return 0; | ||
+#endif | ||
} | ||
|
||
return nf_conntrack_eventmask_report(1 << event, ct, portid, report); | ||
#else | ||
@@ -143,10 +152,12 @@ static inline int | ||
static inline int | ||
nf_conntrack_event(enum ip_conntrack_events event, struct nf_conn *ct) | ||
{ | ||
#ifdef CONFIG_NF_CONNTRACK_EVENTS | ||
+#ifndef CONFIG_NF_CONNTRACK_CHAIN_EVENTS | ||
const struct net *net = nf_ct_net(ct); | ||
|
||
if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) | ||
return 0; | ||
if (nf_ct_ecache_exist(ct)) | ||
return nf_conntrack_eventmask_report(1 << event, ct, 0, 0); | ||
#endif | ||
return 0; | ||
+#endif | ||
} | ||
|
||
return nf_conntrack_eventmask_report(1 << event, ct, 0, 0); | ||
#else | ||
#ifdef CONFIG_NF_CONNTRACK_EVENTS | ||
--- a/include/net/netns/conntrack.h | ||
+++ b/include/net/netns/conntrack.h | ||
@@ -112,6 +112,9 @@ struct netns_ct { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters