kernel: bump 5.15 to 5.15.103
[openwrt/openwrt.git] / target / linux / generic / backport-5.15 / 729-06-v6.1-net-ethernet-mtk_eth_soc-do-not-overwrite-mtu-config.patch
index f9e7caa27cb4b8de06425766ae2922762207feb2..003ca9bae69969dd35e9a4140681e9dd66536e35 100644 (file)
@@ -14,7 +14,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
 
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -3175,6 +3175,30 @@ static void mtk_dim_tx(struct work_struc
+@@ -3176,6 +3176,30 @@ static void mtk_dim_tx(struct work_struc
        dim->state = DIM_START_MEASURE;
  }
  
@@ -45,7 +45,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  static int mtk_hw_init(struct mtk_eth *eth)
  {
        u32 dma_mask = ETHSYS_DMA_AG_MAP_PDMA | ETHSYS_DMA_AG_MAP_QDMA |
-@@ -3249,8 +3273,16 @@ static int mtk_hw_init(struct mtk_eth *e
+@@ -3250,8 +3274,16 @@ static int mtk_hw_init(struct mtk_eth *e
         * up with the more appropriate value when mtk_mac_config call is being
         * invoked.
         */
@@ -63,7 +63,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  
        /* Indicates CDM to parse the MTK special tag from CPU
         * which also is working out for untag packets.
-@@ -3366,7 +3398,6 @@ static int mtk_change_mtu(struct net_dev
+@@ -3367,7 +3399,6 @@ static int mtk_change_mtu(struct net_dev
        int length = new_mtu + MTK_RX_ETH_HLEN;
        struct mtk_mac *mac = netdev_priv(dev);
        struct mtk_eth *eth = mac->hw;
@@ -71,7 +71,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  
        if (rcu_access_pointer(eth->prog) &&
            length > MTK_PP_MAX_BUF_SIZE) {
-@@ -3374,23 +3405,7 @@ static int mtk_change_mtu(struct net_dev
+@@ -3375,23 +3406,7 @@ static int mtk_change_mtu(struct net_dev
                return -EINVAL;
        }