mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
kernel: bump 5.18 to 5.18.13 (#9818)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
This commit is contained in:
parent
7af074fd1d
commit
bb63dd2d5b
@ -1,2 +1,2 @@
|
|||||||
LINUX_VERSION-5.18 = .12
|
LINUX_VERSION-5.18 = .13
|
||||||
LINUX_KERNEL_HASH-5.18.12 = 40b74d0942f255da07481710e1083412d06e37e45b8f9d9e34ae856db37b9527
|
LINUX_KERNEL_HASH-5.18.13 = 430e1affe62fcca274f217b150290995a33ceb0d5ad5e72ca6ee8a2d28276bda
|
||||||
|
@ -22,7 +22,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
|
|
||||||
--- a/include/net/netfilter/nf_conntrack_ecache.h
|
--- a/include/net/netfilter/nf_conntrack_ecache.h
|
||||||
+++ b/include/net/netfilter/nf_conntrack_ecache.h
|
+++ b/include/net/netfilter/nf_conntrack_ecache.h
|
||||||
@@ -83,9 +83,14 @@ struct nf_ct_event_notifier {
|
@@ -81,9 +81,14 @@ struct nf_ct_event_notifier {
|
||||||
int (*exp_event)(unsigned int events, const struct nf_exp_event *item);
|
int (*exp_event)(unsigned int events, const struct nf_exp_event *item);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
|
|
||||||
void nf_ct_deliver_cached_events(struct nf_conn *ct);
|
void nf_ct_deliver_cached_events(struct nf_conn *ct);
|
||||||
int nf_conntrack_eventmask_report(unsigned int eventmask, struct nf_conn *ct,
|
int nf_conntrack_eventmask_report(unsigned int eventmask, struct nf_conn *ct,
|
||||||
@@ -111,11 +116,13 @@ static inline void
|
@@ -109,11 +114,13 @@ static inline void
|
||||||
nf_conntrack_event_cache(enum ip_conntrack_events event, struct nf_conn *ct)
|
nf_conntrack_event_cache(enum ip_conntrack_events event, struct nf_conn *ct)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
||||||
@ -53,7 +53,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
|
|
||||||
e = nf_ct_ecache_find(ct);
|
e = nf_ct_ecache_find(ct);
|
||||||
if (e == NULL)
|
if (e == NULL)
|
||||||
@@ -130,10 +137,12 @@ nf_conntrack_event_report(enum ip_conntr
|
@@ -128,10 +135,12 @@ nf_conntrack_event_report(enum ip_conntr
|
||||||
u32 portid, int report)
|
u32 portid, int report)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
||||||
@ -66,7 +66,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
|
|
||||||
return nf_conntrack_eventmask_report(1 << event, ct, portid, report);
|
return nf_conntrack_eventmask_report(1 << event, ct, portid, report);
|
||||||
#else
|
#else
|
||||||
@@ -145,10 +154,12 @@ static inline int
|
@@ -143,10 +152,12 @@ static inline int
|
||||||
nf_conntrack_event(enum ip_conntrack_events event, struct nf_conn *ct)
|
nf_conntrack_event(enum ip_conntrack_events event, struct nf_conn *ct)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
||||||
@ -81,7 +81,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
#else
|
#else
|
||||||
--- a/include/net/netns/conntrack.h
|
--- a/include/net/netns/conntrack.h
|
||||||
+++ b/include/net/netns/conntrack.h
|
+++ b/include/net/netns/conntrack.h
|
||||||
@@ -113,6 +113,9 @@ struct netns_ct {
|
@@ -112,6 +112,9 @@ struct netns_ct {
|
||||||
|
|
||||||
struct ct_pcpu __percpu *pcpu_lists;
|
struct ct_pcpu __percpu *pcpu_lists;
|
||||||
struct ip_conntrack_stat __percpu *stat;
|
struct ip_conntrack_stat __percpu *stat;
|
||||||
@ -110,7 +110,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
depends on NETFILTER_ADVANCED
|
depends on NETFILTER_ADVANCED
|
||||||
--- a/net/netfilter/nf_conntrack_core.c
|
--- a/net/netfilter/nf_conntrack_core.c
|
||||||
+++ b/net/netfilter/nf_conntrack_core.c
|
+++ b/net/netfilter/nf_conntrack_core.c
|
||||||
@@ -2815,6 +2815,10 @@ int nf_conntrack_init_net(struct net *ne
|
@@ -2837,6 +2837,10 @@ int nf_conntrack_init_net(struct net *ne
|
||||||
nf_conntrack_helper_pernet_init(net);
|
nf_conntrack_helper_pernet_init(net);
|
||||||
nf_conntrack_proto_pernet_init(net);
|
nf_conntrack_proto_pernet_init(net);
|
||||||
|
|
||||||
@ -123,9 +123,9 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
err_expect:
|
err_expect:
|
||||||
--- a/net/netfilter/nf_conntrack_ecache.c
|
--- a/net/netfilter/nf_conntrack_ecache.c
|
||||||
+++ b/net/netfilter/nf_conntrack_ecache.c
|
+++ b/net/netfilter/nf_conntrack_ecache.c
|
||||||
@@ -18,6 +18,9 @@
|
@@ -17,6 +17,9 @@
|
||||||
|
#include <linux/stddef.h>
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/percpu.h>
|
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
+#ifdef CONFIG_NF_CONNTRACK_CHAIN_EVENTS
|
+#ifdef CONFIG_NF_CONNTRACK_CHAIN_EVENTS
|
||||||
+#include <linux/notifier.h>
|
+#include <linux/notifier.h>
|
||||||
@ -133,7 +133,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
#include <linux/netdevice.h>
|
#include <linux/netdevice.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/export.h>
|
#include <linux/export.h>
|
||||||
@@ -168,6 +171,35 @@ static int __nf_conntrack_eventmask_repo
|
@@ -162,6 +165,35 @@ static int __nf_conntrack_eventmask_repo
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
int nf_conntrack_eventmask_report(unsigned int events, struct nf_conn *ct,
|
int nf_conntrack_eventmask_report(unsigned int events, struct nf_conn *ct,
|
||||||
u32 portid, int report)
|
u32 portid, int report)
|
||||||
{
|
{
|
||||||
@@ -204,10 +236,52 @@ int nf_conntrack_eventmask_report(unsign
|
@@ -197,10 +229,52 @@ int nf_conntrack_eventmask_report(unsign
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -222,7 +222,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
void nf_ct_deliver_cached_events(struct nf_conn *ct)
|
void nf_ct_deliver_cached_events(struct nf_conn *ct)
|
||||||
{
|
{
|
||||||
struct nf_conntrack_ecache *e;
|
struct nf_conntrack_ecache *e;
|
||||||
@@ -233,6 +307,7 @@ void nf_ct_deliver_cached_events(struct
|
@@ -226,6 +300,7 @@ void nf_ct_deliver_cached_events(struct
|
||||||
*/
|
*/
|
||||||
__nf_conntrack_eventmask_report(e, events, e->missed, &item);
|
__nf_conntrack_eventmask_report(e, events, e->missed, &item);
|
||||||
}
|
}
|
||||||
@ -230,7 +230,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
EXPORT_SYMBOL_GPL(nf_ct_deliver_cached_events);
|
EXPORT_SYMBOL_GPL(nf_ct_deliver_cached_events);
|
||||||
|
|
||||||
void nf_ct_expect_event_report(enum ip_conntrack_expect_events event,
|
void nf_ct_expect_event_report(enum ip_conntrack_expect_events event,
|
||||||
@@ -265,20 +340,43 @@ out_unlock:
|
@@ -258,20 +333,43 @@ out_unlock:
|
||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,7 +276,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
void nf_conntrack_unregister_notifier(struct net *net)
|
void nf_conntrack_unregister_notifier(struct net *net)
|
||||||
{
|
{
|
||||||
mutex_lock(&nf_ct_ecache_mutex);
|
mutex_lock(&nf_ct_ecache_mutex);
|
||||||
@@ -286,6 +384,7 @@ void nf_conntrack_unregister_notifier(st
|
@@ -279,6 +377,7 @@ void nf_conntrack_unregister_notifier(st
|
||||||
mutex_unlock(&nf_ct_ecache_mutex);
|
mutex_unlock(&nf_ct_ecache_mutex);
|
||||||
/* synchronize_rcu() is called after netns pre_exit */
|
/* synchronize_rcu() is called after netns pre_exit */
|
||||||
}
|
}
|
||||||
@ -306,7 +306,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
struct nf_conn *ct = item->ct;
|
struct nf_conn *ct = item->ct;
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
unsigned int type;
|
unsigned int type;
|
||||||
@@ -3772,11 +3779,17 @@ static int ctnetlink_stat_exp_cpu(struct
|
@@ -3825,11 +3832,17 @@ static int ctnetlink_stat_exp_cpu(struct
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
||||||
@ -324,7 +324,7 @@ Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
|
|||||||
|
|
||||||
static const struct nfnl_callback ctnl_cb[IPCTNL_MSG_MAX] = {
|
static const struct nfnl_callback ctnl_cb[IPCTNL_MSG_MAX] = {
|
||||||
[IPCTNL_MSG_CT_NEW] = {
|
[IPCTNL_MSG_CT_NEW] = {
|
||||||
@@ -3875,8 +3888,12 @@ static int __net_init ctnetlink_net_init
|
@@ -3928,8 +3941,12 @@ static int __net_init ctnetlink_net_init
|
||||||
static void ctnetlink_net_pre_exit(struct net *net)
|
static void ctnetlink_net_pre_exit(struct net *net)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
#ifdef CONFIG_NF_CONNTRACK_EVENTS
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
#endif
|
#endif
|
||||||
--- a/include/net/netfilter/nf_conntrack_ecache.h
|
--- a/include/net/netfilter/nf_conntrack_ecache.h
|
||||||
+++ b/include/net/netfilter/nf_conntrack_ecache.h
|
+++ b/include/net/netfilter/nf_conntrack_ecache.h
|
||||||
@@ -86,6 +86,8 @@ struct nf_ct_event_notifier {
|
@@ -84,6 +84,8 @@ struct nf_ct_event_notifier {
|
||||||
#ifdef CONFIG_NF_CONNTRACK_CHAIN_EVENTS
|
#ifdef CONFIG_NF_CONNTRACK_CHAIN_EVENTS
|
||||||
extern int nf_conntrack_register_notifier(struct net *net, struct notifier_block *nb);
|
extern int nf_conntrack_register_notifier(struct net *net, struct notifier_block *nb);
|
||||||
extern int nf_conntrack_unregister_notifier(struct net *net, struct notifier_block *nb);
|
extern int nf_conntrack_unregister_notifier(struct net *net, struct notifier_block *nb);
|
||||||
@ -152,7 +152,7 @@
|
|||||||
|
|
||||||
--- a/net/netfilter/nf_conntrack_ecache.c
|
--- a/net/netfilter/nf_conntrack_ecache.c
|
||||||
+++ b/net/netfilter/nf_conntrack_ecache.c
|
+++ b/net/netfilter/nf_conntrack_ecache.c
|
||||||
@@ -149,12 +149,23 @@ static int __nf_conntrack_eventmask_repo
|
@@ -143,12 +143,23 @@ static int __nf_conntrack_eventmask_repo
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
|
|
||||||
notify = rcu_dereference(net->ct.nf_conntrack_event_cb);
|
notify = rcu_dereference(net->ct.nf_conntrack_event_cb);
|
||||||
@ -178,7 +178,7 @@
|
|||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
|
|
||||||
if (likely(ret >= 0 && missed == 0))
|
if (likely(ret >= 0 && missed == 0))
|
||||||
@@ -346,6 +357,11 @@ int nf_conntrack_register_notifier(struc
|
@@ -339,6 +350,11 @@ int nf_conntrack_register_notifier(struc
|
||||||
{
|
{
|
||||||
return atomic_notifier_chain_register(&net->ct.nf_conntrack_chain, nb);
|
return atomic_notifier_chain_register(&net->ct.nf_conntrack_chain, nb);
|
||||||
}
|
}
|
||||||
@ -190,7 +190,7 @@
|
|||||||
#else
|
#else
|
||||||
int nf_conntrack_register_notifier(struct net *net,
|
int nf_conntrack_register_notifier(struct net *net,
|
||||||
const struct nf_ct_event_notifier *new)
|
const struct nf_ct_event_notifier *new)
|
||||||
@@ -376,6 +392,11 @@ int nf_conntrack_unregister_notifier(str
|
@@ -369,6 +385,11 @@ int nf_conntrack_unregister_notifier(str
|
||||||
{
|
{
|
||||||
return atomic_notifier_chain_unregister(&net->ct.nf_conntrack_chain, nb);
|
return atomic_notifier_chain_unregister(&net->ct.nf_conntrack_chain, nb);
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|||||||
#include <net/net_namespace.h>
|
#include <net/net_namespace.h>
|
||||||
#ifdef CONFIG_SYSCTL
|
#ifdef CONFIG_SYSCTL
|
||||||
#include <linux/sysctl.h>
|
#include <linux/sysctl.h>
|
||||||
@@ -462,6 +463,56 @@ static int ct_cpu_seq_show(struct seq_fi
|
@@ -465,6 +466,56 @@ static int ct_cpu_seq_show(struct seq_fi
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|||||||
static const struct seq_operations ct_cpu_seq_ops = {
|
static const struct seq_operations ct_cpu_seq_ops = {
|
||||||
.start = ct_cpu_seq_start,
|
.start = ct_cpu_seq_start,
|
||||||
.next = ct_cpu_seq_next,
|
.next = ct_cpu_seq_next,
|
||||||
@@ -475,8 +526,9 @@ static int nf_conntrack_standalone_init_
|
@@ -478,8 +529,9 @@ static int nf_conntrack_standalone_init_
|
||||||
kuid_t root_uid;
|
kuid_t root_uid;
|
||||||
kgid_t root_gid;
|
kgid_t root_gid;
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
|
|||||||
|
|
||||||
--- a/net/netfilter/nf_conntrack_standalone.c
|
--- a/net/netfilter/nf_conntrack_standalone.c
|
||||||
+++ b/net/netfilter/nf_conntrack_standalone.c
|
+++ b/net/netfilter/nf_conntrack_standalone.c
|
||||||
@@ -633,6 +633,7 @@ enum nf_ct_sysctl_index {
|
@@ -636,6 +636,7 @@ enum nf_ct_sysctl_index {
|
||||||
#endif
|
#endif
|
||||||
NF_SYSCTL_CT_PROTO_TCP_LOOSE,
|
NF_SYSCTL_CT_PROTO_TCP_LOOSE,
|
||||||
NF_SYSCTL_CT_PROTO_TCP_LIBERAL,
|
NF_SYSCTL_CT_PROTO_TCP_LIBERAL,
|
||||||
@ -48,7 +48,7 @@ Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
|
|||||||
NF_SYSCTL_CT_PROTO_TCP_IGNORE_INVALID_RST,
|
NF_SYSCTL_CT_PROTO_TCP_IGNORE_INVALID_RST,
|
||||||
NF_SYSCTL_CT_PROTO_TCP_MAX_RETRANS,
|
NF_SYSCTL_CT_PROTO_TCP_MAX_RETRANS,
|
||||||
NF_SYSCTL_CT_PROTO_TIMEOUT_UDP,
|
NF_SYSCTL_CT_PROTO_TIMEOUT_UDP,
|
||||||
@@ -849,6 +850,14 @@ static struct ctl_table nf_ct_sysctl_tab
|
@@ -852,6 +853,14 @@ static struct ctl_table nf_ct_sysctl_tab
|
||||||
.extra1 = SYSCTL_ZERO,
|
.extra1 = SYSCTL_ZERO,
|
||||||
.extra2 = SYSCTL_ONE,
|
.extra2 = SYSCTL_ONE,
|
||||||
},
|
},
|
||||||
@ -63,7 +63,7 @@ Signed-off-by: Christian 'Ansuel' Marangi <ansuelsmth@gmail.com>
|
|||||||
[NF_SYSCTL_CT_PROTO_TCP_IGNORE_INVALID_RST] = {
|
[NF_SYSCTL_CT_PROTO_TCP_IGNORE_INVALID_RST] = {
|
||||||
.procname = "nf_conntrack_tcp_ignore_invalid_rst",
|
.procname = "nf_conntrack_tcp_ignore_invalid_rst",
|
||||||
.maxlen = sizeof(u8),
|
.maxlen = sizeof(u8),
|
||||||
@@ -1065,6 +1074,7 @@ static void nf_conntrack_standalone_init
|
@@ -1068,6 +1077,7 @@ static void nf_conntrack_standalone_init
|
||||||
|
|
||||||
XASSIGN(LOOSE, &tn->tcp_loose);
|
XASSIGN(LOOSE, &tn->tcp_loose);
|
||||||
XASSIGN(LIBERAL, &tn->tcp_be_liberal);
|
XASSIGN(LIBERAL, &tn->tcp_be_liberal);
|
||||||
|
@ -11,9 +11,23 @@
|
|||||||
if (priv->plat->phy_node || mdio_node)
|
if (priv->plat->phy_node || mdio_node)
|
||||||
goto bus_register_done;
|
goto bus_register_done;
|
||||||
|
|
||||||
|
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
|
||||||
|
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
|
||||||
|
@@ -498,6 +498,11 @@ int stmmac_mdio_register(struct net_devi
|
||||||
|
if (priv->plat->has_xgmac)
|
||||||
|
stmmac_xgmac2_mdio_read(new_bus, 0, MII_ADDR_C45);
|
||||||
|
|
||||||
|
+ stmmac_mdio_write(new_bus,0,31,2627);
|
||||||
|
+ stmmac_mdio_write(new_bus,0,25,0x1801);
|
||||||
|
+ stmmac_mdio_write(new_bus,0,31,0);
|
||||||
|
+ stmmac_mdio_write(new_bus,0,0,0x8000);
|
||||||
|
+
|
||||||
|
if (priv->plat->phy_node || mdio_node)
|
||||||
|
goto bus_register_done;
|
||||||
|
|
||||||
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
|
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
|
||||||
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
|
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
|
||||||
@@ -2907,6 +2907,8 @@ static int stmmac_init_dma_engine(struct
|
@@ -2852,6 +2852,8 @@ static int stmmac_init_dma_engine(struct
|
||||||
if (priv->extend_desc && (priv->mode == STMMAC_RING_MODE))
|
if (priv->extend_desc && (priv->mode == STMMAC_RING_MODE))
|
||||||
atds = 1;
|
atds = 1;
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user