Skip to content

Commit badf145

Browse files
tk154robimarko
authored andcommitted
x86: rename and configure Mellanox Spectrum interfaces
This commit renames all management network ports of the SN2100, SN2700, SN3420, and SN3700 switches based on their PCI address during boot. For the default network config, the management and QSFP port(s) are put into the br-lan bridge. Signed-off-by: Til Kaiser <mail@tk154.de> Link: openwrt/openwrt#17251 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent 055d877 commit badf145

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

target/linux/x86/base-files/etc/board.d/02_network

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,27 @@ micro-computer-hk-tech-limited-ms-a2)
6767
ucidef_set_network_device_path "sfp2" "pci0000:00/0000:00:02.1/0000:05:00.1"
6868
ucidef_set_interface_lan "lan1 lan2 sfp1 sfp2"
6969
;;
70+
mellanox-technologies-ltd-msn2100)
71+
ucidef_set_network_device_path "mgmt" "pci0000:00/0000:00:14.0"
72+
ucidef_set_interface_lan "mgmt "
73+
ucidef_set_interface_netdev_range "lan" "swp" "1" "16"
74+
;;
75+
mellanox-technologies-ltd-msn2700)
76+
ucidef_set_network_device_path "mgmt0" "pci0000:00/0000:00:19.0"
77+
ucidef_set_network_device_path "mgmt1" "pci0000:00/0000:00:1c.6/0000:06:00.0"
78+
ucidef_set_interface_lan "mgmt0 mgmt1 "
79+
ucidef_set_interface_netdev_range "lan" "swp" "1" "32"
80+
;;
81+
mellanox-technologies-ltd-msn3420)
82+
ucidef_set_network_device_path "mgmt" "pci0000:00/0000:00:1c.7/0000:09:00.0"
83+
ucidef_set_interface_lan "mgmt "
84+
ucidef_set_interface_netdev_range "lan" "swp" "1" "60"
85+
;;
86+
mellanox-technologies-ltd-msn3700)
87+
ucidef_set_network_device_path "mgmt" "pci0000:00/0000:00:1c.7/0000:09:00.0"
88+
ucidef_set_interface_lan "mgmt "
89+
ucidef_set_interface_netdev_range "lan" "swp" "1" "32"
90+
;;
7091
pc-engines-apu1|pc-engines-apu2|pc-engines-apu3)
7192
ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
7293
;;

0 commit comments

Comments
 (0)