[openwrt/openwrt] x86: rename and configure Mellanox Spectrum interfaces
LEDE Commits
lede-commits at lists.infradead.org
Mon Oct 6 10:06:34 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/badf145f11d7f464b3c4616ac68fac28f388be8b
commit badf145f11d7f464b3c4616ac68fac28f388be8b
Author: Til Kaiser <mail at tk154.de>
AuthorDate: Sat Oct 12 18:32:45 2024 +0200
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 at tk154.de>
Link: https://github.com/openwrt/openwrt/pull/17251
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
target/linux/x86/base-files/etc/board.d/02_network | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/target/linux/x86/base-files/etc/board.d/02_network b/target/linux/x86/base-files/etc/board.d/02_network
index c4b33e24ce..11a9bf8a14 100644
--- a/target/linux/x86/base-files/etc/board.d/02_network
+++ b/target/linux/x86/base-files/etc/board.d/02_network
@@ -67,6 +67,27 @@ micro-computer-hk-tech-limited-ms-a2)
ucidef_set_network_device_path "sfp2" "pci0000:00/0000:00:02.1/0000:05:00.1"
ucidef_set_interface_lan "lan1 lan2 sfp1 sfp2"
;;
+mellanox-technologies-ltd-msn2100)
+ ucidef_set_network_device_path "mgmt" "pci0000:00/0000:00:14.0"
+ ucidef_set_interface_lan "mgmt "
+ ucidef_set_interface_netdev_range "lan" "swp" "1" "16"
+ ;;
+mellanox-technologies-ltd-msn2700)
+ ucidef_set_network_device_path "mgmt0" "pci0000:00/0000:00:19.0"
+ ucidef_set_network_device_path "mgmt1" "pci0000:00/0000:00:1c.6/0000:06:00.0"
+ ucidef_set_interface_lan "mgmt0 mgmt1 "
+ ucidef_set_interface_netdev_range "lan" "swp" "1" "32"
+ ;;
+mellanox-technologies-ltd-msn3420)
+ ucidef_set_network_device_path "mgmt" "pci0000:00/0000:00:1c.7/0000:09:00.0"
+ ucidef_set_interface_lan "mgmt "
+ ucidef_set_interface_netdev_range "lan" "swp" "1" "60"
+ ;;
+mellanox-technologies-ltd-msn3700)
+ ucidef_set_network_device_path "mgmt" "pci0000:00/0000:00:1c.7/0000:09:00.0"
+ ucidef_set_interface_lan "mgmt "
+ ucidef_set_interface_netdev_range "lan" "swp" "1" "32"
+ ;;
pc-engines-apu1|pc-engines-apu2|pc-engines-apu3)
ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
;;
More information about the lede-commits
mailing list