hc
2024-11-15 a46a1ad097419aeea7350987dd95230f50d90392
固定GMAC1 网卡名为 eth3
1 files modified
2 ■■■■■ changed files
kernel/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 2 ●●●●● patch | view | raw | blame | history
kernel/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
....@@ -5321,6 +5321,8 @@
53215321 }
53225322 }
53235323
5324
+ snprintf(ndev->name, IFNAMSIZ, ndev->name, 3);
5325
+ printk(">>> troy fixup ndev->name=%s\n", ndev->name);
53245326 ret = stmmac_phy_setup(priv);
53255327 if (ret) {
53265328 netdev_err(ndev, "failed to setup phy (%d)\n", ret);