]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: bump 6.18 to 6.18.25 22890/head
authorJohn Audia <therealgraysky@proton.me>
Mon, 27 Apr 2026 18:42:59 +0000 (14:42 -0400)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 29 Apr 2026 23:15:19 +0000 (01:15 +0200)
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.18.25

Manually rebased:
  generic/pending-6.18/795-09-net-ethernet-mtk_ppe-offload-flows-to-MxL862xx-switc.patch

All other patches automatically rebased via update_kernel.sh

Build system: x86/64
Build-tested: x86/64-glibc
Run-tested: x86/64-glibc

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/22890
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
21 files changed:
target/linux/ath79/patches-6.18/900-unaligned_access_hacks.patch
target/linux/generic/backport-6.18/785-v7.0-09-net-pcs-pcs-mtk-lynxi-pass-SGMIISYS-OF-node-to-PCS.patch
target/linux/generic/hack-6.18/730-net-ethernet-mtk_eth_soc-add-hw-dump-for-forced-rese.patch
target/linux/generic/kernel-6.18
target/linux/generic/pending-6.18/630-packet_socket_type.patch
target/linux/generic/pending-6.18/702-net-ethernet-mtk_eth_soc-enable-threaded-NAPI.patch
target/linux/generic/pending-6.18/732-03-net-ethernet-mtk_eth_soc-optimize-dma-ring-address-i.patch
target/linux/generic/pending-6.18/736-04-net-ethernet-mediatek-fix-ppe-flow-accounting-for-L2.patch
target/linux/generic/pending-6.18/737-08-net-ethernet-mtk_eth_soc-improve-probe-deferal.patch
target/linux/generic/pending-6.18/737-09-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch
target/linux/generic/pending-6.18/738-01-net-ethernet-mtk_eth_soc-reduce-rx-ring-size-for-older.patch
target/linux/generic/pending-6.18/738-02-net-ethernet-mtk_eth_soc-do-not-enable-page-pool-sta.patch
target/linux/generic/pending-6.18/795-01-net-ethernet-mtk_ppe_offload-use-rhashtable_lookup_f.patch
target/linux/generic/pending-6.18/795-03-net-ethernet-mtk_ppe_offload-set-output-device-befor.patch
target/linux/generic/pending-6.18/795-04-net-ethernet-mtk_eth_soc-per-SoC-QDMA-TX-queue-count.patch
target/linux/generic/pending-6.18/795-05-net-ethernet-mtk_eth_soc-add-per-conduit-DSA-user-po.patch
target/linux/generic/pending-6.18/795-06-net-ethernet-mtk_eth_soc-use-DSA-queue-map-in-TX-pat.patch
target/linux/generic/pending-6.18/795-09-net-ethernet-mtk_ppe-offload-flows-to-MxL862xx-switc.patch
target/linux/mediatek/patches-6.18/750-net-ethernet-mtk_eth_soc-add-mt7987-support.patch
target/linux/mediatek/patches-6.18/751-net-ethernet-mtk_eth_soc-revise-hardware-configuration-for-mt7987.patch
target/linux/mediatek/patches-6.18/901-arm-add-cmdline-override.patch

index f2f20eedabe4b15b5d58f52c4ef4e3aa70c613e5..80b17873957586eefefb6fa03f5a4145be70b106 100644 (file)
@@ -312,7 +312,7 @@ SVN-Revision: 35130
                case IPV6_2292HOPOPTS:
 --- a/net/ipv6/exthdrs.c
 +++ b/net/ipv6/exthdrs.c
-@@ -984,7 +984,7 @@ static bool ipv6_hop_jumbo(struct sk_buf
+@@ -988,7 +988,7 @@ static bool ipv6_hop_jumbo(struct sk_buf
                goto drop;
        }
  
index dc5051c72d0ec844ea72ca4408a90c324f6c1fe6..9d88ac8af8c1a2750508459953f5f06560a9a804 100644 (file)
@@ -51,7 +51,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
                        break;
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -5000,7 +5000,6 @@ static int mtk_sgmii_init(struct mtk_eth
+@@ -5020,7 +5020,6 @@ static int mtk_sgmii_init(struct mtk_eth
  {
        struct device_node *np;
        struct regmap *regmap;
@@ -59,7 +59,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
        int i;
  
        for (i = 0; i < MTK_MAX_DEVS; i++) {
-@@ -5009,18 +5008,16 @@ static int mtk_sgmii_init(struct mtk_eth
+@@ -5029,18 +5028,16 @@ static int mtk_sgmii_init(struct mtk_eth
                        break;
  
                regmap = syscon_node_to_regmap(np);
index 9bc3a752b02758a23b456996506832c88d97e671..e97a246adbcc30cfe03d930324b25fa5bfe5804b 100644 (file)
@@ -37,7 +37,7 @@ Signed-off-by: Bo-Cun Chen <bc-bocun.chen@mediatek.com>
                .glo_cfg        = 0x4604,
                .rst_idx        = 0x4608,
                .delay_irq      = 0x460c,
-@@ -4178,6 +4181,56 @@ static void mtk_set_mcr_max_rx(struct mt
+@@ -4193,6 +4196,56 @@ static void mtk_set_mcr_max_rx(struct mt
                mtk_w32(mac->hw, mcr_new, MTK_MAC_MCR(mac->id));
  }
  
@@ -94,7 +94,7 @@ Signed-off-by: Bo-Cun Chen <bc-bocun.chen@mediatek.com>
  static void mtk_hw_reset(struct mtk_eth *eth)
  {
        u32 val;
-@@ -4657,6 +4710,8 @@ static void mtk_pending_work(struct work
+@@ -4677,6 +4730,8 @@ static void mtk_pending_work(struct work
        rtnl_lock();
        set_bit(MTK_RESETTING, &eth->state);
  
index 5eb275ad230454cc6d869ea8a5f68a1e81f335d5..b30a271d74805e29f08f50c9745f68be9d86397a 100644 (file)
@@ -1,2 +1,2 @@
-LINUX_VERSION-6.18 = .24
-LINUX_KERNEL_HASH-6.18.24 = c207c557ce58103b4dda30e26da5203f3d8467c6dadc53d709f6d83ae1d1255f
+LINUX_VERSION-6.18 = .25
+LINUX_KERNEL_HASH-6.18.25 = 29680a07d4430b269af6ce68079b0e81dbd60f03e6f351e0661991fe39bd1898
index c896893ef818c285c3021cbdc05cb52f9716efb1..0171d1fd0f4639bbc78f4b996c76e6b09ea212c1 100644 (file)
@@ -87,7 +87,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        if (!net_eq(dev_net(dev), sock_net(sk)))
                goto drop;
  
-@@ -3376,6 +3378,7 @@ static int packet_create(struct net *net
+@@ -3381,6 +3383,7 @@ static int packet_create(struct net *net
        mutex_init(&po->pg_vec_lock);
        po->rollover = NULL;
        po->prot_hook.func = packet_rcv;
@@ -95,7 +95,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  
        if (sock->type == SOCK_PACKET)
                po->prot_hook.func = packet_rcv_spkt;
-@@ -4044,6 +4047,16 @@ packet_setsockopt(struct socket *sock, i
+@@ -4049,6 +4052,16 @@ packet_setsockopt(struct socket *sock, i
                packet_sock_flag_set(po, PACKET_SOCK_QDISC_BYPASS, val);
                return 0;
        }
@@ -112,7 +112,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        default:
                return -ENOPROTOOPT;
        }
-@@ -4106,6 +4119,13 @@ static int packet_getsockopt(struct sock
+@@ -4111,6 +4124,13 @@ static int packet_getsockopt(struct sock
        case PACKET_COPY_THRESH:
                val = READ_ONCE(pkt_sk(sk)->copy_thresh);
                break;
index 1c9e5bac214fbf7ae13437e3209570c8e0fee63a..64290f3e1e153be7fe14805ce9ebd58276fd731c 100644 (file)
@@ -10,7 +10,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -5295,6 +5295,8 @@ static int mtk_probe(struct platform_dev
+@@ -5315,6 +5315,8 @@ static int mtk_probe(struct platform_dev
                dev_err(eth->dev, "failed to allocated dummy device\n");
                goto err_unreg_netdev;
        }
index d8595e4dfd138fd13301a841b9b46b0f21823f91..40464bef541de8da60d15d579116029b940085b0 100644 (file)
@@ -291,7 +291,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                                  eth->scratch_ring, eth->phy_scratch_ring,
                                  true);
                eth->scratch_ring = NULL;
-@@ -5383,6 +5387,9 @@ static void mtk_remove(struct platform_d
+@@ -5403,6 +5407,9 @@ static void mtk_remove(struct platform_d
        mtk_mdio_cleanup(eth);
  }
  
@@ -301,7 +301,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  static const struct mtk_soc_data mt2701_data = {
        .reg_map = &mtk_reg_map,
        .caps = MT7623_CAPS | MTK_HWLRO,
-@@ -5391,14 +5398,14 @@ static const struct mtk_soc_data mt2701_
+@@ -5411,14 +5418,14 @@ static const struct mtk_soc_data mt2701_
        .required_pctl = true,
        .version = 1,
        .tx = {
@@ -318,7 +318,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID,
                .dma_size = MTK_DMA_SIZE(2K),
-@@ -5419,14 +5426,14 @@ static const struct mtk_soc_data mt7621_
+@@ -5439,14 +5446,14 @@ static const struct mtk_soc_data mt7621_
        .hash_offset = 2,
        .foe_entry_size = MTK_FOE_ENTRY_V1_SIZE,
        .tx = {
@@ -335,7 +335,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID,
                .dma_size = MTK_DMA_SIZE(2K),
-@@ -5449,14 +5456,14 @@ static const struct mtk_soc_data mt7622_
+@@ -5469,14 +5476,14 @@ static const struct mtk_soc_data mt7622_
        .has_accounting = true,
        .foe_entry_size = MTK_FOE_ENTRY_V1_SIZE,
        .tx = {
@@ -352,7 +352,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID,
                .dma_size = MTK_DMA_SIZE(2K),
-@@ -5478,14 +5485,14 @@ static const struct mtk_soc_data mt7623_
+@@ -5498,14 +5505,14 @@ static const struct mtk_soc_data mt7623_
        .foe_entry_size = MTK_FOE_ENTRY_V1_SIZE,
        .disable_pll_modes = true,
        .tx = {
@@ -369,7 +369,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID,
                .dma_size = MTK_DMA_SIZE(2K),
-@@ -5504,14 +5511,14 @@ static const struct mtk_soc_data mt7629_
+@@ -5524,14 +5531,14 @@ static const struct mtk_soc_data mt7629_
        .has_accounting = true,
        .version = 1,
        .tx = {
@@ -386,7 +386,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID,
                .dma_size = MTK_DMA_SIZE(2K),
-@@ -5534,14 +5541,14 @@ static const struct mtk_soc_data mt7981_
+@@ -5554,14 +5561,14 @@ static const struct mtk_soc_data mt7981_
        .has_accounting = true,
        .foe_entry_size = MTK_FOE_ENTRY_V2_SIZE,
        .tx = {
@@ -403,7 +403,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID_V2,
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
-@@ -5564,14 +5571,14 @@ static const struct mtk_soc_data mt7986_
+@@ -5584,14 +5591,14 @@ static const struct mtk_soc_data mt7986_
        .has_accounting = true,
        .foe_entry_size = MTK_FOE_ENTRY_V2_SIZE,
        .tx = {
@@ -420,7 +420,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID_V2,
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
-@@ -5594,14 +5601,14 @@ static const struct mtk_soc_data mt7988_
+@@ -5614,14 +5621,14 @@ static const struct mtk_soc_data mt7988_
        .has_accounting = true,
        .foe_entry_size = MTK_FOE_ENTRY_V3_SIZE,
        .tx = {
@@ -437,7 +437,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .irq_done_mask = MTK_RX_DONE_INT_V2,
                .dma_l4_valid = RX_DMA_L4_VALID_V2,
                .dma_max_len = MTK_TX_DMA_BUF_LEN_V2,
-@@ -5618,13 +5625,13 @@ static const struct mtk_soc_data rt5350_
+@@ -5638,13 +5645,13 @@ static const struct mtk_soc_data rt5350_
        .required_pctl = false,
        .version = 1,
        .tx = {
index 3f0354cd966182e51be6a624ca38e2911c979fbf..09d2f4d08cf1c318ed5dcc5be7635a033f2dcd17 100644 (file)
@@ -276,7 +276,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  };
  
  struct mtk_mib_entry {
-@@ -348,6 +350,7 @@ void mtk_ppe_deinit(struct mtk_eth *eth)
+@@ -349,6 +351,7 @@ void mtk_ppe_update_mtu(struct mtk_ppe *
  void mtk_ppe_start(struct mtk_ppe *ppe);
  int mtk_ppe_stop(struct mtk_ppe *ppe);
  int mtk_ppe_prepare_reset(struct mtk_ppe *ppe);
@@ -284,7 +284,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  
  void __mtk_ppe_check_skb(struct mtk_ppe *ppe, struct sk_buff *skb, u16 hash);
  
-@@ -397,9 +400,8 @@ int mtk_foe_entry_set_queue(struct mtk_e
+@@ -398,9 +401,8 @@ int mtk_foe_entry_set_queue(struct mtk_e
                            unsigned int queue);
  int mtk_foe_entry_commit(struct mtk_ppe *ppe, struct mtk_flow_entry *entry);
  void mtk_foe_entry_clear(struct mtk_ppe *ppe, struct mtk_flow_entry *entry);
index ec920fa2178119276ba25bafafb9d7daade27574..c9e26898b68c4a0ee0b807ae9c2268b1a256f0dc 100644 (file)
@@ -18,7 +18,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -5005,17 +5005,6 @@ static int mtk_add_mac(struct mtk_eth *e
+@@ -5025,17 +5025,6 @@ static int mtk_add_mac(struct mtk_eth *e
        mac->hw = eth;
        mac->of_node = np;
  
@@ -36,7 +36,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        memset(mac->hwlro_ip, 0, sizeof(mac->hwlro_ip));
        mac->hwlro_ip_cnt = 0;
  
-@@ -5156,6 +5145,26 @@ free_netdev:
+@@ -5176,6 +5165,26 @@ free_netdev:
        return err;
  }
  
@@ -63,7 +63,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  void mtk_eth_set_dma_device(struct mtk_eth *eth, struct device *dma_dev)
  {
        struct net_device *dev, *tmp;
-@@ -5415,6 +5424,28 @@ static int mtk_probe(struct platform_dev
+@@ -5435,6 +5444,28 @@ static int mtk_probe(struct platform_dev
                }
        }
  
index ec5625958490d14f21fac276d3b98b23cecc1d23..91e3dc2ec68e640bcdb1e394bc8adbe6e7a932c9 100644 (file)
@@ -275,7 +275,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        .mac_config = mtk_mac_config,
        .mac_finish = mtk_mac_finish,
        .mac_link_down = mtk_mac_link_down,
-@@ -4971,7 +5004,8 @@ static int mtk_add_mac(struct mtk_eth *e
+@@ -4991,7 +5024,8 @@ static int mtk_add_mac(struct mtk_eth *e
        phy_interface_t phy_mode;
        struct phylink *phylink;
        struct mtk_mac *mac;
@@ -285,7 +285,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        int txqs = 1;
        u32 val;
  
-@@ -5042,6 +5076,7 @@ static int mtk_add_mac(struct mtk_eth *e
+@@ -5062,6 +5096,7 @@ static int mtk_add_mac(struct mtk_eth *e
        mac->phylink_config.lpi_capabilities = MAC_100FD | MAC_1000FD |
                MAC_2500FD;
        mac->phylink_config.lpi_timer_default = 1000;
@@ -293,7 +293,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  
        /* MT7623 gmac0 is now missing its speed-specific PLL configuration
         * in its .mac_config method (since state->speed is not valid there.
-@@ -5072,13 +5107,62 @@ static int mtk_add_mac(struct mtk_eth *e
+@@ -5092,13 +5127,62 @@ static int mtk_add_mac(struct mtk_eth *e
  
        if (MTK_HAS_CAPS(mac->hw->soc->caps, MTK_SGMII)) {
                __set_bit(PHY_INTERFACE_MODE_SGMII,
@@ -359,7 +359,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        if (mtk_is_netsys_v3_or_greater(mac->hw) &&
            MTK_HAS_CAPS(mac->hw->soc->caps, MTK_ESW) &&
            id == MTK_GMAC1_ID) {
-@@ -5088,18 +5172,16 @@ static int mtk_add_mac(struct mtk_eth *e
+@@ -5108,18 +5192,16 @@ static int mtk_add_mac(struct mtk_eth *e
                phy_interface_zero(mac->phylink_config.supported_interfaces);
                __set_bit(PHY_INTERFACE_MODE_INTERNAL,
                          mac->phylink_config.supported_interfaces);
@@ -386,7 +386,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        if (MTK_HAS_CAPS(mac->hw->soc->caps, MTK_2P5GPHY) &&
            id == MTK_GMAC2_ID)
                __set_bit(PHY_INTERFACE_MODE_INTERNAL,
-@@ -5122,6 +5204,16 @@ static int mtk_add_mac(struct mtk_eth *e
+@@ -5142,6 +5224,16 @@ static int mtk_add_mac(struct mtk_eth *e
        eth->netdev[id]->irq = eth->irq[MTK_FE_IRQ_SHARED];
        eth->netdev[id]->dev.of_node = np;
  
@@ -403,7 +403,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        if (MTK_HAS_CAPS(eth->soc->caps, MTK_SOC_MT7628))
                eth->netdev[id]->max_mtu = MTK_MAX_RX_LENGTH - MTK_RX_ETH_HLEN;
        else
-@@ -5315,7 +5407,8 @@ static int mtk_probe(struct platform_dev
+@@ -5335,7 +5427,8 @@ static int mtk_probe(struct platform_dev
                        regmap_write(cci, 0, 3);
        }
  
index 5850e41899f9282f42b9546a5b33d5934958c44c..8a52eac1e60948451dc8a61b6768eeedd15bfe65 100644 (file)
@@ -30,7 +30,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -5682,7 +5682,7 @@ static const struct mtk_soc_data mt2701_
+@@ -5702,7 +5702,7 @@ static const struct mtk_soc_data mt2701_
                DESC_SIZE(struct mtk_rx_dma),
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID,
@@ -39,7 +39,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
                .dma_len_offset = 16,
        },
-@@ -5710,7 +5710,7 @@ static const struct mtk_soc_data mt7621_
+@@ -5730,7 +5730,7 @@ static const struct mtk_soc_data mt7621_
                DESC_SIZE(struct mtk_rx_dma),
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID,
@@ -48,7 +48,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
                .dma_len_offset = 16,
        },
-@@ -5740,7 +5740,7 @@ static const struct mtk_soc_data mt7622_
+@@ -5760,7 +5760,7 @@ static const struct mtk_soc_data mt7622_
                DESC_SIZE(struct mtk_rx_dma),
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID,
@@ -57,7 +57,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
                .dma_len_offset = 16,
        },
-@@ -5769,7 +5769,7 @@ static const struct mtk_soc_data mt7623_
+@@ -5789,7 +5789,7 @@ static const struct mtk_soc_data mt7623_
                DESC_SIZE(struct mtk_rx_dma),
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID,
@@ -66,7 +66,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
                .dma_len_offset = 16,
        },
-@@ -5795,7 +5795,7 @@ static const struct mtk_soc_data mt7629_
+@@ -5815,7 +5815,7 @@ static const struct mtk_soc_data mt7629_
                DESC_SIZE(struct mtk_rx_dma),
                .irq_done_mask = MTK_RX_DONE_INT,
                .dma_l4_valid = RX_DMA_L4_VALID,
@@ -75,7 +75,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
                .dma_len_offset = 16,
        },
-@@ -5827,7 +5827,7 @@ static const struct mtk_soc_data mt7981_
+@@ -5847,7 +5847,7 @@ static const struct mtk_soc_data mt7981_
                .dma_l4_valid = RX_DMA_L4_VALID_V2,
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
                .dma_len_offset = 16,
@@ -84,7 +84,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        },
  };
  
-@@ -5857,7 +5857,7 @@ static const struct mtk_soc_data mt7986_
+@@ -5877,7 +5877,7 @@ static const struct mtk_soc_data mt7986_
                .dma_l4_valid = RX_DMA_L4_VALID_V2,
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
                .dma_len_offset = 16,
@@ -93,7 +93,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        },
  };
  
-@@ -5910,7 +5910,7 @@ static const struct mtk_soc_data rt5350_
+@@ -5930,7 +5930,7 @@ static const struct mtk_soc_data rt5350_
                .dma_l4_valid = RX_DMA_L4_VALID_PDMA,
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
                .dma_len_offset = 16,
index 3dc8c8f6f94974a2bd324aeab921f42f063f4fda..e47033f7f8946abf307d060a3fb68102f788ef00 100644 (file)
@@ -25,7 +25,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        help
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -4810,6 +4810,7 @@ static int mtk_get_sset_count(struct net
+@@ -4830,6 +4830,7 @@ static int mtk_get_sset_count(struct net
  
  static void mtk_ethtool_pp_stats(struct mtk_eth *eth, u64 *data)
  {
@@ -33,7 +33,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        struct page_pool_stats stats = {};
        int i;
  
-@@ -4822,6 +4823,7 @@ static void mtk_ethtool_pp_stats(struct
+@@ -4842,6 +4843,7 @@ static void mtk_ethtool_pp_stats(struct
                page_pool_get_stats(ring->page_pool, &stats);
        }
        page_pool_ethtool_stats_get(data, &stats);
index 12ece8d88fe05385b2358996ddf4693dc418ea14..61c7712017b9e259b437715c4677321c99ea4f72 100644 (file)
@@ -34,7 +34,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 
 --- a/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
 +++ b/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
-@@ -261,7 +261,8 @@ mtk_flow_offload_replace(struct mtk_eth
+@@ -280,7 +280,8 @@ mtk_flow_offload_replace(struct mtk_eth
        int err = 0;
        int i;
  
@@ -44,7 +44,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
                return -EEXIST;
  
        if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_META)) {
-@@ -503,8 +504,8 @@ mtk_flow_offload_destroy(struct mtk_eth
+@@ -522,8 +523,8 @@ mtk_flow_offload_destroy(struct mtk_eth
  {
        struct mtk_flow_entry *entry;
  
@@ -55,7 +55,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        if (!entry)
                return -ENOENT;
  
-@@ -525,8 +526,8 @@ mtk_flow_offload_stats(struct mtk_eth *e
+@@ -544,8 +545,8 @@ mtk_flow_offload_stats(struct mtk_eth *e
        u64 packets, bytes;
        int idle;
  
index 9aac7991b303879311e2e123076ad0eb3af5c0e1..415368948c5251de954d7741d23d759d59eaddda 100644 (file)
@@ -27,7 +27,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 
 --- a/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
 +++ b/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
-@@ -453,6 +453,14 @@ mtk_flow_offload_replace(struct mtk_eth
+@@ -472,6 +472,14 @@ mtk_flow_offload_replace(struct mtk_eth
                        return err;
        }
  
@@ -42,7 +42,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        if (offload_type == MTK_PPE_PKT_TYPE_BRIDGE)
                foe.bridge.vlan = data.vlan_in;
  
-@@ -462,14 +470,6 @@ mtk_flow_offload_replace(struct mtk_eth
+@@ -481,14 +489,6 @@ mtk_flow_offload_replace(struct mtk_eth
        if (data.pppoe.num == 1)
                mtk_foe_entry_set_pppoe(eth, &foe, data.pppoe.sid);
  
index 5807a027acbd0f64e3d40ea8e20c596ad87f7d5e..7af29c1f2c55c223b0f87fe00c3e2f1d5738ab63 100644 (file)
@@ -98,7 +98,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
                return NOTIFY_DONE;
  
        if (mac->speed > 0 && mac->speed <= s.base.speed)
-@@ -5028,7 +5032,7 @@ static int mtk_add_mac(struct mtk_eth *e
+@@ -5048,7 +5052,7 @@ static int mtk_add_mac(struct mtk_eth *e
        }
  
        if (MTK_HAS_CAPS(eth->soc->caps, MTK_QDMA))
@@ -107,7 +107,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  
        eth->netdev[id] = alloc_etherdev_mqs(sizeof(*mac), txqs, 1);
        if (!eth->netdev[id]) {
-@@ -5673,6 +5677,7 @@ static const struct mtk_soc_data mt2701_
+@@ -5693,6 +5697,7 @@ static const struct mtk_soc_data mt2701_
        .required_clks = MT7623_CLKS_BITMAP,
        .required_pctl = true,
        .version = 1,
@@ -115,7 +115,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        .tx = {
                DESC_SIZE(struct mtk_tx_dma),
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
-@@ -5700,6 +5705,7 @@ static const struct mtk_soc_data mt7621_
+@@ -5720,6 +5725,7 @@ static const struct mtk_soc_data mt7621_
        .offload_version = 1,
        .ppe_num = 1,
        .hash_offset = 2,
@@ -123,7 +123,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        .foe_entry_size = MTK_FOE_ENTRY_V1_SIZE,
        .tx = {
                DESC_SIZE(struct mtk_tx_dma),
-@@ -5730,6 +5736,7 @@ static const struct mtk_soc_data mt7622_
+@@ -5750,6 +5756,7 @@ static const struct mtk_soc_data mt7622_
        .ppe_num = 1,
        .hash_offset = 2,
        .has_accounting = true,
@@ -131,7 +131,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        .foe_entry_size = MTK_FOE_ENTRY_V1_SIZE,
        .tx = {
                DESC_SIZE(struct mtk_tx_dma),
-@@ -5758,6 +5765,7 @@ static const struct mtk_soc_data mt7623_
+@@ -5778,6 +5785,7 @@ static const struct mtk_soc_data mt7623_
        .offload_version = 1,
        .ppe_num = 1,
        .hash_offset = 2,
@@ -139,7 +139,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        .foe_entry_size = MTK_FOE_ENTRY_V1_SIZE,
        .disable_pll_modes = true,
        .tx = {
-@@ -5786,6 +5794,7 @@ static const struct mtk_soc_data mt7629_
+@@ -5806,6 +5814,7 @@ static const struct mtk_soc_data mt7629_
        .required_pctl = false,
        .has_accounting = true,
        .version = 1,
@@ -147,7 +147,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        .tx = {
                DESC_SIZE(struct mtk_tx_dma),
                .dma_max_len = MTK_TX_DMA_BUF_LEN,
-@@ -5815,6 +5824,7 @@ static const struct mtk_soc_data mt7981_
+@@ -5835,6 +5844,7 @@ static const struct mtk_soc_data mt7981_
        .ppe_num = 2,
        .hash_offset = 4,
        .has_accounting = true,
@@ -155,7 +155,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        .foe_entry_size = MTK_FOE_ENTRY_V2_SIZE,
        .tx = {
                DESC_SIZE(struct mtk_tx_dma_v2),
-@@ -5845,6 +5855,7 @@ static const struct mtk_soc_data mt7986_
+@@ -5865,6 +5875,7 @@ static const struct mtk_soc_data mt7986_
        .ppe_num = 2,
        .hash_offset = 4,
        .has_accounting = true,
@@ -163,7 +163,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        .foe_entry_size = MTK_FOE_ENTRY_V2_SIZE,
        .tx = {
                DESC_SIZE(struct mtk_tx_dma_v2),
-@@ -5875,6 +5886,7 @@ static const struct mtk_soc_data mt7988_
+@@ -5895,6 +5906,7 @@ static const struct mtk_soc_data mt7988_
        .ppe_num = 3,
        .hash_offset = 4,
        .has_accounting = true,
index 3d982d4f9502783661fa15f6204bea8121c576d9..3a0bac954cd31453c4f0eb1a3be83982fc2a4660 100644 (file)
@@ -114,7 +114,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        if (__ethtool_get_link_ksettings(dev, &s))
                return NOTIFY_DONE;
  
-@@ -5010,7 +5054,7 @@ static int mtk_add_mac(struct mtk_eth *e
+@@ -5030,7 +5074,7 @@ static int mtk_add_mac(struct mtk_eth *e
        phy_interface_t phy_mode;
        struct phylink *phylink;
        struct mtk_mac *mac;
@@ -123,7 +123,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
        unsigned int sid;
        int txqs = 1;
        u32 val;
-@@ -5045,6 +5089,16 @@ static int mtk_add_mac(struct mtk_eth *e
+@@ -5065,6 +5109,16 @@ static int mtk_add_mac(struct mtk_eth *e
        mac->hw = eth;
        mac->of_node = np;
  
index f81fc0a164491b17cffe360aba3501257df13aeb..065302bf4b9fc882ed4702c53e9d7ec738210910 100644 (file)
@@ -62,7 +62,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  
        return NOTIFY_DONE;
  }
-@@ -4994,12 +4999,17 @@ static u16 mtk_select_queue(struct net_d
+@@ -5014,12 +5019,17 @@ static u16 mtk_select_queue(struct net_d
                            struct net_device *sb_dev)
  {
        struct mtk_mac *mac = netdev_priv(dev);
index ba518a2c7755ff57f5128bd33a8e72128ae59521..540a29c414f7ec0fed2f50fc3f7c034d1e014079 100644 (file)
@@ -133,7 +133,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  
        if (dsa_port >= 0 && dsa_port < MTK_DSA_USER_PORT_MAX) {
                mac = netdev_priv(dev);
-@@ -275,6 +308,17 @@ mtk_flow_offload_replace(struct mtk_eth
+@@ -294,6 +327,17 @@ mtk_flow_offload_replace(struct mtk_eth
                flow_rule_match_meta(rule, &match);
                if (mtk_is_netsys_v2_or_greater(eth)) {
                        idev = __dev_get_by_index(&init_net, match.key->ingress_ifindex);
@@ -148,6 +148,6 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 +                       * flow never binds in HW.
 +                       */
 +                      mtk_flow_get_dsa_port(&idev, NULL);
-                       if (idev && idev->netdev_ops == eth->netdev[0]->netdev_ops) {
+                       if (mtk_flow_is_valid_idev(eth, idev)) {
                                struct mtk_mac *mac = netdev_priv(idev);
  
index db41e889f93441f3faa8cb01b9bf62c5e5afa504..86d505c86aa0e575ae52308ab19cc3a1ab201eb7 100644 (file)
@@ -126,7 +126,7 @@ Signed-off-by: Bo-Cun Chen <bc-bocun.chen@mediatek.com>
                        if (mtk_is_netsys_v1(eth))
                                val |= MTK_QTX_SCH_LEAKY_BUCKET_EN;
                        mtk_w32(eth, val, soc->reg_map->qdma.qtx_sch + ofs);
-@@ -5993,6 +6029,37 @@ static const struct mtk_soc_data mt7986_
+@@ -6013,6 +6049,37 @@ static const struct mtk_soc_data mt7986_
        },
  };
  
@@ -164,7 +164,7 @@ Signed-off-by: Bo-Cun Chen <bc-bocun.chen@mediatek.com>
  static const struct mtk_soc_data mt7988_data = {
        .reg_map = &mt7988_reg_map,
        .ana_rgc3 = 0x128,
-@@ -6055,6 +6122,7 @@ const struct of_device_id of_mtk_match[]
+@@ -6075,6 +6142,7 @@ const struct of_device_id of_mtk_match[]
        { .compatible = "mediatek,mt7629-eth", .data = &mt7629_data },
        { .compatible = "mediatek,mt7981-eth", .data = &mt7981_data },
        { .compatible = "mediatek,mt7986-eth", .data = &mt7986_data },
index c9f638f5e6b0067dc16ddca9d2403f800f25b27a..8547a753dfa02ad514bbb1e20619f2dfc8aea947 100644 (file)
@@ -15,7 +15,7 @@ Signed-off-by: Bo-Cun Chen <bc-bocun.chen@mediatek.com>
 
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -4570,27 +4570,40 @@ static int mtk_hw_init(struct mtk_eth *e
+@@ -4585,27 +4585,40 @@ static int mtk_hw_init(struct mtk_eth *e
                mtk_w32(eth, PSE_DUMMY_WORK_GDM(1) | PSE_DUMMY_WORK_GDM(2) |
                        PSE_DUMMY_WORK_GDM(3) | DUMMY_PAGE_THR, PSE_DUMY_REQ);
  
index 302791113ecadb1e409355a4da9de2e339b1ed32..505ba385dff93953f76f2d3eb324d02ac5953519 100644 (file)
@@ -51,7 +51,7 @@ Signed-off-by: Yoonji Park <koreapyj@dcmys.kr>
         * CONFIG_CMDLINE is meant to be a default in case nothing else
 --- a/arch/arm64/Kconfig
 +++ b/arch/arm64/Kconfig
-@@ -2386,6 +2386,14 @@ config CMDLINE_FORCE
+@@ -2398,6 +2398,14 @@ config CMDLINE_FORCE
  
  endchoice