forked from openwrt/openwrt
-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'openwrt:main' into qualcommax-ssdk-12.5.r2
- Loading branch information
Showing
32 changed files
with
646 additions
and
376 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-6.6 = .29 | ||
LINUX_KERNEL_HASH-6.6.29 = 7f26f74c08082c86b1daf866e4d49c5d8276cc1906a89d0e367e457ec167cbd0 | ||
LINUX_VERSION-6.6 = .30 | ||
LINUX_KERNEL_HASH-6.6.30 = b66a5b863b0f8669448b74ca83bd641a856f164b29956e539bbcb5fdeeab9cc6 |
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
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 |
---|---|---|
|
@@ -61,7 +61,7 @@ Signed-off-by: Felix Fietkau <[email protected]> | |
|
||
static void sock_def_write_space_wfree(struct sock *sk); | ||
static void sock_def_write_space(struct sock *sk); | ||
@@ -589,6 +591,21 @@ discard_and_relse: | ||
@@ -590,6 +592,21 @@ discard_and_relse: | ||
} | ||
EXPORT_SYMBOL(__sk_receive_skb); | ||
|
||
|
@@ -83,7 +83,7 @@ Signed-off-by: Felix Fietkau <[email protected]> | |
INDIRECT_CALLABLE_DECLARE(struct dst_entry *ip6_dst_check(struct dst_entry *, | ||
u32)); | ||
INDIRECT_CALLABLE_DECLARE(struct dst_entry *ipv4_dst_check(struct dst_entry *, | ||
@@ -2246,9 +2263,11 @@ static void __sk_free(struct sock *sk) | ||
@@ -2247,9 +2264,11 @@ static void __sk_free(struct sock *sk) | ||
if (likely(sk->sk_net_refcnt)) | ||
sock_inuse_add(sock_net(sk), -1); | ||
|
||
|
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 |
---|---|---|
|
@@ -330,7 +330,7 @@ Signed-off-by: Felix Fietkau <[email protected]> | |
|
||
--- a/net/core/sock.c | ||
+++ b/net/core/sock.c | ||
@@ -4144,6 +4144,8 @@ static __net_initdata struct pernet_oper | ||
@@ -4145,6 +4145,8 @@ static __net_initdata struct pernet_oper | ||
|
||
static int __init proto_init(void) | ||
{ | ||
|
42 changes: 42 additions & 0 deletions
42
.../linux/generic/pending-6.1/684-net-bridge-fix-corrupted-ethernet-header-on-multicas.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,42 @@ | ||
From: Felix Fietkau <[email protected]> | ||
Date: Sun, 5 May 2024 20:36:56 +0200 | ||
Subject: [PATCH] net: bridge: fix corrupted ethernet header on | ||
multicast-to-unicast | ||
|
||
The change from skb_copy to pskb_copy unfortunately changed the data | ||
copying to omit the ethernet header, since it was pulled before reaching | ||
this point. Fix this by calling __skb_push/pull around pskb_copy. | ||
|
||
Fixes: 59c878cbcdd8 ("net: bridge: fix multicast-to-unicast with fraglist GSO") | ||
Signed-off-by: Felix Fietkau <[email protected]> | ||
--- | ||
|
||
--- a/net/bridge/br_forward.c | ||
+++ b/net/bridge/br_forward.c | ||
@@ -253,6 +253,7 @@ static void maybe_deliver_addr(struct ne | ||
{ | ||
struct net_device *dev = BR_INPUT_SKB_CB(skb)->brdev; | ||
const unsigned char *src = eth_hdr(skb)->h_source; | ||
+ struct sk_buff *nskb; | ||
|
||
if (!should_deliver(p, skb)) | ||
return; | ||
@@ -261,12 +262,16 @@ static void maybe_deliver_addr(struct ne | ||
if (skb->dev == p->dev && ether_addr_equal(src, addr)) | ||
return; | ||
|
||
- skb = pskb_copy(skb, GFP_ATOMIC); | ||
- if (!skb) { | ||
+ __skb_push(skb, ETH_HLEN); | ||
+ nskb = pskb_copy(skb, GFP_ATOMIC); | ||
+ __skb_pull(skb, ETH_HLEN); | ||
+ if (!nskb) { | ||
DEV_STATS_INC(dev, tx_dropped); | ||
return; | ||
} | ||
|
||
+ skb = nskb; | ||
+ __skb_pull(skb, ETH_HLEN); | ||
if (!is_broadcast_ether_addr(addr)) | ||
memcpy(eth_hdr(skb)->h_dest, addr, ETH_ALEN); | ||
|
42 changes: 42 additions & 0 deletions
42
.../linux/generic/pending-6.6/684-net-bridge-fix-corrupted-ethernet-header-on-multicas.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,42 @@ | ||
From: Felix Fietkau <[email protected]> | ||
Date: Sun, 5 May 2024 20:36:56 +0200 | ||
Subject: [PATCH] net: bridge: fix corrupted ethernet header on | ||
multicast-to-unicast | ||
|
||
The change from skb_copy to pskb_copy unfortunately changed the data | ||
copying to omit the ethernet header, since it was pulled before reaching | ||
this point. Fix this by calling __skb_push/pull around pskb_copy. | ||
|
||
Fixes: 59c878cbcdd8 ("net: bridge: fix multicast-to-unicast with fraglist GSO") | ||
Signed-off-by: Felix Fietkau <[email protected]> | ||
--- | ||
|
||
--- a/net/bridge/br_forward.c | ||
+++ b/net/bridge/br_forward.c | ||
@@ -258,6 +258,7 @@ static void maybe_deliver_addr(struct ne | ||
{ | ||
struct net_device *dev = BR_INPUT_SKB_CB(skb)->brdev; | ||
const unsigned char *src = eth_hdr(skb)->h_source; | ||
+ struct sk_buff *nskb; | ||
|
||
if (!should_deliver(p, skb)) | ||
return; | ||
@@ -266,12 +267,16 @@ static void maybe_deliver_addr(struct ne | ||
if (skb->dev == p->dev && ether_addr_equal(src, addr)) | ||
return; | ||
|
||
- skb = pskb_copy(skb, GFP_ATOMIC); | ||
- if (!skb) { | ||
+ __skb_push(skb, ETH_HLEN); | ||
+ nskb = pskb_copy(skb, GFP_ATOMIC); | ||
+ __skb_pull(skb, ETH_HLEN); | ||
+ if (!nskb) { | ||
DEV_STATS_INC(dev, tx_dropped); | ||
return; | ||
} | ||
|
||
+ skb = nskb; | ||
+ __skb_pull(skb, ETH_HLEN); | ||
if (!is_broadcast_ether_addr(addr)) | ||
memcpy(eth_hdr(skb)->h_dest, addr, ETH_ALEN); | ||
|
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 |
---|---|---|
|
@@ -182,10 +182,10 @@ Signed-off-by: Felix Fietkau <[email protected]> | |
static int min_rcvbuf = SOCK_MIN_RCVBUF; | ||
static int max_skb_frags = MAX_SKB_FRAGS; | ||
+static int backlog_threaded; | ||
static int min_mem_pcpu_rsv = SK_MEMORY_PCPU_RESERVE; | ||
|
||
static int net_msg_warn; /* Unused, but still a sysctl */ | ||
|
||
@@ -188,6 +189,23 @@ static int rps_sock_flow_sysctl(struct c | ||
@@ -189,6 +190,23 @@ static int rps_sock_flow_sysctl(struct c | ||
} | ||
#endif /* CONFIG_RPS */ | ||
|
||
|
@@ -209,7 +209,7 @@ Signed-off-by: Felix Fietkau <[email protected]> | |
#ifdef CONFIG_NET_FLOW_LIMIT | ||
static DEFINE_MUTEX(flow_limit_update_mutex); | ||
|
||
@@ -532,6 +550,15 @@ static struct ctl_table net_core_table[] | ||
@@ -541,6 +559,15 @@ static struct ctl_table net_core_table[] | ||
.proc_handler = rps_sock_flow_sysctl | ||
}, | ||
#endif | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ Signed-off-by: Tobias Waldekranz <[email protected]> | |
|
||
--- a/drivers/net/dsa/mv88e6xxx/chip.c | ||
+++ b/drivers/net/dsa/mv88e6xxx/chip.c | ||
@@ -6887,6 +6887,7 @@ static int mv88e6xxx_register_switch(str | ||
@@ -6935,6 +6935,7 @@ static int mv88e6xxx_register_switch(str | ||
ds->ops = &mv88e6xxx_switch_ops; | ||
ds->ageing_time_min = chip->info->age_time_coeff; | ||
ds->ageing_time_max = chip->info->age_time_coeff * U8_MAX; | ||
|
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
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
Oops, something went wrong.