--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
-@@ -35,6 +35,9 @@ typedef uint32_t __u32;
+@@ -102,6 +102,9 @@ typedef uint32_t __u32;
typedef uint16_t __u16;
typedef unsigned char __u8;
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
-@@ -259,7 +259,6 @@ config NF_CONNTRACK_FTP
+@@ -249,7 +249,6 @@ config NF_CONNTRACK_FTP
config NF_CONNTRACK_H323
tristate "H.323 protocol support"
depends on NETFILTER_ADVANCED
help
H.323 is a VoIP signalling protocol from ITU-T. As one of the most
-@@ -1120,7 +1119,6 @@ config NETFILTER_XT_TARGET_SECMARK
+@@ -1126,7 +1125,6 @@ config NETFILTER_XT_TARGET_SECMARK
config NETFILTER_XT_TARGET_TCPMSS
tristate '"TCPMSS" target support'
--- a/init/Kconfig
+++ b/init/Kconfig
-@@ -2063,7 +2063,7 @@ config PADATA
+@@ -2191,7 +2191,7 @@ config PADATA
bool
config ASN1
that can be interpreted by the ASN.1 stream decoder and used to
--- a/lib/Kconfig
+++ b/lib/Kconfig
-@@ -642,7 +642,7 @@ config LIBFDT
+@@ -504,7 +504,7 @@ config LIBFDT
bool
config OID_REGISTRY
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
-@@ -149,15 +149,15 @@ config CRYPTO_MANAGER
- cbc(aes).
+@@ -156,15 +156,15 @@ config CRYPTO_MANAGER
+ cbc(aes), and the support for the crypto self-tests.
config CRYPTO_MANAGER2
- def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
--- a/lib/crypto/Kconfig
+++ b/lib/crypto/Kconfig
-@@ -20,7 +20,7 @@ config CRYPTO_LIB_AESGCM
+@@ -23,7 +23,7 @@ config CRYPTO_LIB_AESGCM
select CRYPTO_LIB_UTILS
config CRYPTO_LIB_ARC4
#include "mtdcore.h"
-@@ -1109,6 +1110,8 @@ int mtd_device_parse_register(struct mtd
+@@ -1162,6 +1163,8 @@ int mtd_device_parse_register(struct mtd
register_reboot_notifier(&mtd->reboot_notifier);
}
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
-@@ -780,7 +780,8 @@ int add_mtd_device(struct mtd_info *mtd)
+@@ -832,7 +832,8 @@ int add_mtd_device(struct mtd_info *mtd)
mutex_unlock(&mtd_table_mutex);
#include "check.h"
static int (*const check_part[])(struct parsed_partitions *) = {
-@@ -285,6 +287,74 @@ static ssize_t whole_disk_show(struct de
+@@ -287,6 +289,74 @@ static ssize_t whole_disk_show(struct de
}
static const DEVICE_ATTR(whole_disk, 0444, whole_disk_show, NULL);
/*
* Must be called either with open_mutex held, before a disk can be opened or
* after all disk users are gone.
-@@ -361,6 +431,9 @@ static struct block_device *add_partitio
+@@ -363,6 +433,9 @@ static struct block_device *add_partitio
goto out_put;
}
err = device_add(pdev);
--- a/drivers/mmc/core/bus.c
+++ b/drivers/mmc/core/bus.c
-@@ -368,6 +368,8 @@ int mmc_add_card(struct mmc_card *card)
+@@ -375,6 +375,8 @@ int mmc_add_card(struct mmc_card *card)
mmc_add_card_debugfs(card);
card->dev.of_node = mmc_of_find_child_device(card->host, 0);
--- a/drivers/mmc/core/block.c
+++ b/drivers/mmc/core/block.c
-@@ -2679,6 +2679,10 @@ static struct mmc_blk_data *mmc_blk_allo
+@@ -2642,6 +2642,10 @@ static struct mmc_blk_data *mmc_blk_allo
if (area_type == MMC_BLK_DATA_AREA_MAIN)
dev_set_drvdata(&card->dev, md);
disk_fwnode = mmc_blk_get_partitions_node(parent, subname);
--- a/include/linux/netdev_features.h
+++ b/include/linux/netdev_features.h
-@@ -235,10 +235,10 @@ static inline int find_next_netdev_featu
+@@ -237,10 +237,10 @@ static inline int find_next_netdev_featu
#define NETIF_F_UPPER_DISABLES NETIF_F_LRO
/* changeable features with no special hardware requirements */
--- a/net/core/page_pool.c
+++ b/net/core/page_pool.c
-@@ -1155,8 +1155,9 @@ static void page_pool_release_retry(stru
+@@ -1199,8 +1199,9 @@ static void page_pool_release_retry(stru
{
struct delayed_work *dwq = to_delayed_work(wq);
struct page_pool *pool = container_of(dwq, typeof(*pool), release_dw);
inflight = page_pool_release(pool);
/* In rare cases, a driver bug may cause inflight to go negative.
-@@ -1168,6 +1169,21 @@ static void page_pool_release_retry(stru
+@@ -1212,6 +1213,21 @@ static void page_pool_release_retry(stru
if (inflight <= 0)
return;
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
-@@ -729,7 +729,6 @@ config NF_FLOW_TABLE
+@@ -725,7 +725,6 @@ config NF_FLOW_TABLE
tristate "Netfilter flow table module"
depends on NETFILTER_INGRESS
depends on NF_CONNTRACK
help
This option adds the flow table core infrastructure.
-@@ -1025,6 +1024,15 @@ config NETFILTER_XT_TARGET_NOTRACK
+@@ -1031,6 +1030,15 @@ config NETFILTER_XT_TARGET_NOTRACK
depends on NETFILTER_ADVANCED
select NETFILTER_XT_TARGET_CT
depends on NETFILTER_ADVANCED
--- a/net/netfilter/Makefile
+++ b/net/netfilter/Makefile
-@@ -168,6 +168,7 @@ obj-$(CONFIG_NETFILTER_XT_TARGET_CLASSIF
+@@ -167,6 +167,7 @@ obj-$(CONFIG_NETFILTER_XT_TARGET_CLASSIF
obj-$(CONFIG_NETFILTER_XT_TARGET_CONNSECMARK) += xt_CONNSECMARK.o
obj-$(CONFIG_NETFILTER_XT_TARGET_CT) += xt_CT.o
obj-$(CONFIG_NETFILTER_XT_TARGET_DSCP) += xt_DSCP.o
#include <net/netfilter/nf_flow_table.h>
#include <net/netfilter/nf_conntrack.h>
#include <net/netfilter/nf_conntrack_core.h>
-@@ -373,8 +372,7 @@ flow_offload_lookup(struct nf_flowtable
+@@ -413,8 +412,7 @@ flow_offload_lookup(struct nf_flowtable
}
EXPORT_SYMBOL_GPL(flow_offload_lookup);
void (*iter)(struct nf_flowtable *flowtable,
struct flow_offload *flow, void *data),
void *data)
-@@ -435,6 +433,7 @@ static void nf_flow_offload_gc_step(stru
+@@ -582,6 +580,7 @@ static void nf_flow_offload_gc_step(stru
nf_flow_offload_stats(flow_table, flow);
}
}
+#endif /* _XT_FLOWOFFLOAD_H */
--- a/include/net/netfilter/nf_flow_table.h
+++ b/include/net/netfilter/nf_flow_table.h
-@@ -294,6 +294,11 @@ void nf_flow_table_free(struct nf_flowta
+@@ -295,6 +295,11 @@ void nf_flow_table_free(struct nf_flowta
void flow_offload_teardown(struct flow_offload *flow);
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
-@@ -159,8 +159,8 @@ static inline bool dev_xmit_complete(int
+@@ -162,8 +162,8 @@ static inline bool dev_xmit_complete(int
#if defined(CONFIG_HYPERV_NET)
# define LL_MAX_HEADER 128
--- a/net/sched/sch_fq_codel.c
+++ b/net/sched/sch_fq_codel.c
-@@ -472,7 +472,11 @@ static int fq_codel_init(struct Qdisc *s
+@@ -475,7 +475,11 @@ static int fq_codel_init(struct Qdisc *s
sch->limit = 10*1024;
q->flows_cnt = 1024;
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
-@@ -2648,7 +2648,7 @@ int nf_conntrack_init_start(void)
+@@ -2640,7 +2640,7 @@ int nf_conntrack_init_start(void)
if (!nf_conntrack_htable_size) {
nf_conntrack_htable_size
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
-@@ -77,6 +77,80 @@ config SFP
+@@ -82,6 +82,80 @@ config SFP
depends on HWMON || HWMON=n
select MDIO_I2C
config AS21XXX_PHY
--- a/drivers/net/phy/Makefile
+++ b/drivers/net/phy/Makefile
-@@ -27,6 +27,21 @@ libphy-$(CONFIG_OPEN_ALLIANCE_HELPERS) +
- obj-$(CONFIG_PHYLINK) += phylink.o
- obj-$(CONFIG_PHYLIB) += libphy.o
+@@ -21,6 +21,21 @@ obj-$(CONFIG_PHYLIB) += libphy.o
+ obj-$(CONFIG_PHYLIB) += mdio_devres.o
+ obj-$(CONFIG_PHY_PACKAGE) += phy_package.o
+obj-$(CONFIG_SWCONFIG) += swconfig.o
+obj-$(CONFIG_ADM6996_PHY) += adm6996.o
--- a/drivers/net/dsa/mv88e6xxx/chip.c
+++ b/drivers/net/dsa/mv88e6xxx/chip.c
-@@ -3583,6 +3583,9 @@ static int mv88e6xxx_setup_port(struct m
+@@ -3532,6 +3532,9 @@ static int mv88e6xxx_setup_port(struct m
else
reg = 1 << port;
--- a/drivers/net/phy/aquantia/aquantia_main.c
+++ b/drivers/net/phy/aquantia/aquantia_main.c
-@@ -259,10 +259,16 @@ static int aqr_config_aneg_set_prot(stru
+@@ -306,10 +306,16 @@ static int aqr_config_aneg_set_prot(stru
phy_write_mmd(phydev, MDIO_MMD_VEND1, AQUANTIA_VND1_GSTART_RATE,
aquantia_syscfg[if_type].start_rate);
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -74,6 +74,7 @@ static const struct mtk_reg_map mtk_reg_
+@@ -75,6 +75,7 @@ static const struct mtk_reg_map mtk_reg_
.rx_ptr = 0x1900,
.rx_cnt_cfg = 0x1904,
.qcrx_ptr = 0x1908,
.glo_cfg = 0x1a04,
.rst_idx = 0x1a08,
.delay_irq = 0x1a0c,
-@@ -140,6 +141,7 @@ static const struct mtk_reg_map mt7986_r
+@@ -141,6 +142,7 @@ static const struct mtk_reg_map mt7986_r
.rx_ptr = 0x4500,
.rx_cnt_cfg = 0x4504,
.qcrx_ptr = 0x4508,
.glo_cfg = 0x4604,
.rst_idx = 0x4608,
.delay_irq = 0x460c,
-@@ -191,6 +193,7 @@ static const struct mtk_reg_map mt7988_r
+@@ -192,6 +194,7 @@ static const struct mtk_reg_map mt7988_r
.rx_ptr = 0x4500,
.rx_cnt_cfg = 0x4504,
.qcrx_ptr = 0x4508,
.glo_cfg = 0x4604,
.rst_idx = 0x4608,
.delay_irq = 0x460c,
-@@ -4069,6 +4072,56 @@ static void mtk_set_mcr_max_rx(struct mt
+@@ -4160,6 +4163,56 @@ static void mtk_set_mcr_max_rx(struct mt
mtk_w32(mac->hw, mcr_new, MTK_MAC_MCR(mac->id));
}
static void mtk_hw_reset(struct mtk_eth *eth)
{
u32 val;
-@@ -4548,6 +4601,8 @@ static void mtk_pending_work(struct work
+@@ -4639,6 +4692,8 @@ static void mtk_pending_work(struct work
rtnl_lock();
set_bit(MTK_RESETTING, ð->state);
/* Run again reset preliminary configuration in order to avoid any
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
-@@ -1185,6 +1185,7 @@ struct mtk_reg_map {
+@@ -1193,6 +1193,7 @@ struct mtk_reg_map {
u32 rx_ptr; /* rx base pointer */
u32 rx_cnt_cfg; /* rx max count configuration */
u32 qcrx_ptr; /* rx cpu pointer */
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
-@@ -431,6 +431,8 @@ config QSEMI_PHY
+@@ -458,6 +458,8 @@ config QSEMI_PHY
source "drivers/net/phy/realtek/Kconfig"
help
--- a/drivers/net/phy/Makefile
+++ b/drivers/net/phy/Makefile
-@@ -110,6 +110,7 @@ obj-$(CONFIG_NXP_TJA11XX_PHY) += nxp-tja
+@@ -106,6 +106,7 @@ obj-$(CONFIG_NXP_TJA11XX_PHY) += nxp-tja
obj-y += qcom/
obj-$(CONFIG_QSEMI_PHY) += qsemi.o
obj-$(CONFIG_REALTEK_PHY) += realtek/
--- a/drivers/net/phy/motorcomm.c
+++ b/drivers/net/phy/motorcomm.c
-@@ -214,6 +214,9 @@
- #define YT8521_RC1R_RGMII_2_100_NS 14
- #define YT8521_RC1R_RGMII_2_250_NS 15
+@@ -228,6 +228,9 @@
+ #define YT8521_LED_100_ON_EN BIT(5)
+ #define YT8521_LED_10_ON_EN BIT(4)
+#define YTPHY_MDIO_ADDRESS_CONTROL_REG 0xA005
+#define YTPHY_MACR_EN_PHY_ADDR_0 BIT(6)
#define YTPHY_MISC_CONFIG_REG 0xA006
#define YTPHY_MCR_FIBER_SPEED_MASK BIT(0)
#define YTPHY_MCR_FIBER_1000BX (0x1 << 0)
-@@ -2659,6 +2662,23 @@ static int yt8821_config_init(struct phy
+@@ -2773,6 +2776,23 @@ static int yt8821_config_init(struct phy
int ret;
u16 set;
#include <linux/crc32.h>
#include <linux/if_vlan.h>
#include <linux/uaccess.h>
-@@ -7049,6 +7050,22 @@ static void rtl_tally_reset(struct r8152
+@@ -7019,6 +7020,22 @@ static void rtl_tally_reset(struct r8152
ocp_write_word(tp, MCU_TYPE_PLA, PLA_RSTTALLY, ocp_data);
}
static void r8152b_init(struct r8152 *tp)
{
u32 ocp_data;
-@@ -7090,6 +7107,8 @@ static void r8152b_init(struct r8152 *tp
+@@ -7060,6 +7077,8 @@ static void r8152b_init(struct r8152 *tp
ocp_data = ocp_read_word(tp, MCU_TYPE_USB, USB_USB_CTRL);
ocp_data &= ~(RX_AGG_DISABLE | RX_ZERO_EN);
ocp_write_word(tp, MCU_TYPE_USB, USB_USB_CTRL, ocp_data);
}
static void r8153_init(struct r8152 *tp)
-@@ -7230,6 +7249,8 @@ static void r8153_init(struct r8152 *tp)
+@@ -7200,6 +7219,8 @@ static void r8153_init(struct r8152 *tp)
tp->coalesce = COALESCE_SLOW;
break;
}
}
static void r8153b_init(struct r8152 *tp)
-@@ -7312,6 +7333,8 @@ static void r8153b_init(struct r8152 *tp
+@@ -7282,6 +7303,8 @@ static void r8153b_init(struct r8152 *tp
rtl_tally_reset(tp);
tp->coalesce = 15000; /* 15 us */
led_cdev->flags |= LED_RETAIN_AT_SHUTDOWN;
--- a/drivers/net/ethernet/realtek/r8169_main.c
+++ b/drivers/net/ethernet/realtek/r8169_main.c
-@@ -980,28 +980,6 @@ int rtl8125_get_led_mode(struct rtl8169_
+@@ -978,28 +978,6 @@ int rtl8125_get_led_mode(struct rtl8169_
return ret;
}
#include <linux/bcm47xx_nvram.h>
#include <linux/phy.h>
#include <linux/phy_fixed.h>
-@@ -1408,6 +1409,17 @@ static const struct ethtool_ops bgmac_et
+@@ -1407,6 +1408,17 @@ static const struct ethtool_ops bgmac_et
.set_link_ksettings = phy_ethtool_set_link_ksettings,
};
/**************************************************
* MII
**************************************************/
-@@ -1546,6 +1558,14 @@ int bgmac_enet_probe(struct bgmac *bgmac
+@@ -1545,6 +1557,14 @@ int bgmac_enet_probe(struct bgmac *bgmac
bgmac->in_init = false;
err = register_netdev(bgmac->net_dev);
if (err) {
dev_err(bgmac->dev, "Cannot register net device\n");
-@@ -1568,6 +1588,10 @@ EXPORT_SYMBOL_GPL(bgmac_enet_probe);
+@@ -1567,6 +1587,10 @@ EXPORT_SYMBOL_GPL(bgmac_enet_probe);
void bgmac_enet_remove(struct bgmac *bgmac)
{
--- a/net/Kconfig
+++ b/net/Kconfig
-@@ -138,6 +138,9 @@ source "net/mptcp/Kconfig"
+@@ -147,6 +147,9 @@ source "net/mptcp/Kconfig"
endif # if INET
+++ b/net/core/Makefile
@@ -11,12 +11,13 @@ obj-$(CONFIG_SYSCTL) += sysctl_net_core.
- obj-y += dev.o dev_addr_lists.o dst.o netevent.o \
+ obj-y += dev.o dev_api.o dev_addr_lists.o dst.o netevent.o \
neighbour.o rtnetlink.o utils.o link_watch.o filter.o \
- sock_diag.o dev_ioctl.o tso.o sock_reuseport.o \
+ dev_ioctl.o tso.o sock_reuseport.o \
#include <linux/uaccess.h>
-@@ -152,6 +153,7 @@
+@@ -154,6 +155,7 @@
static DEFINE_MUTEX(proto_list_mutex);
static LIST_HEAD(proto_list);
static void sock_def_write_space_wfree(struct sock *sk);
static void sock_def_write_space(struct sock *sk);
-@@ -587,6 +589,21 @@ discard_and_relse:
+@@ -600,6 +602,21 @@ discard_and_relse:
}
EXPORT_SYMBOL(__sk_receive_skb);
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 *,
-@@ -2342,9 +2359,11 @@ static void __sk_free(struct sock *sk)
+@@ -2406,9 +2423,11 @@ static void __sk_free(struct sock *sk)
if (likely(sk->sk_net_refcnt))
sock_inuse_add(sock_net(sk), -1);
+ select SOCK_DIAG
default y
help
- Support for INET (TCP, DCCP, etc) socket monitoring interface used by
+ Support for INET (TCP, UDP, etc) socket monitoring interface used by
--- a/net/netlink/Kconfig
+++ b/net/netlink/Kconfig
@@ -5,6 +5,7 @@
Support for PF_PACKET sockets monitoring interface used by the ss tool.
--- a/net/unix/Kconfig
+++ b/net/unix/Kconfig
-@@ -24,6 +24,7 @@ config AF_UNIX_OOB
+@@ -26,6 +26,7 @@ config AF_UNIX_OOB
config UNIX_DIAG
tristate "UNIX: socket monitoring interface"
depends on UNIX
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
-@@ -1049,6 +1049,9 @@ int __init early_init_dt_scan_chosen(cha
+@@ -1116,6 +1116,9 @@ int __init early_init_dt_scan_chosen(cha
p = of_get_flat_dt_prop(node, "bootargs", &l);
if (p != NULL && l > 0)
strscpy(cmdline, p, min(l, COMMAND_LINE_SIZE));
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
-@@ -1653,7 +1653,7 @@ static void device_links_purge(struct de
+@@ -1652,7 +1652,7 @@ static void device_links_purge(struct de
#define FW_DEVLINK_FLAGS_RPM (FW_DEVLINK_FLAGS_ON | \
DL_FLAG_PM_RUNTIME)