ramips: 6.6: refresh patches
[openwrt/staging/xback.git] / target / linux / ramips / patches-6.6 / 700-net-ethernet-mediatek-support-net-labels.patch
index a6e2aa04ca305389c6a2381b234ec0904b762dec..0a7f7785dbcaf98c8bf24b5694553db4298ad006 100644 (file)
@@ -14,7 +14,7 @@ Signed-off-by: RenĂ© van Dorst <opensource@vdorst.com>
 
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -4643,6 +4643,7 @@ static const struct net_device_ops mtk_n
+@@ -4662,6 +4662,7 @@ static const struct net_device_ops mtk_n
  
  static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np)
  {
@@ -22,9 +22,9 @@ Signed-off-by: RenĂ© van Dorst <opensource@vdorst.com>
        const __be32 *_id = of_get_property(np, "reg", NULL);
        struct device_node *pcs_np;
        phy_interface_t phy_mode;
-@@ -4840,6 +4841,9 @@ static int mtk_add_mac(struct mtk_eth *e
-               register_netdevice_notifier(&mac->device_notifier);
-       }
+@@ -4875,6 +4876,9 @@ static int mtk_add_mac(struct mtk_eth *e
+                                               NETDEV_XDP_ACT_NDO_XMIT |
+                                               NETDEV_XDP_ACT_NDO_XMIT_SG;
  
 +      if (name)
 +              strlcpy(eth->netdev[id]->name, name, IFNAMSIZ);