openwrt/package
Til Kaiser 503596b8ce base-files: add ucidef_set_network_device_path_port function
The already existing uci function ucidef_set_network_device_path
can be used to specify a unique PCI address to name a network interface.
However, I noticed that some NIC ports share the same PCI address
but are still distinguishable by the dev_port value of the network
interface's sysfs entry.

This commit adds a new uci function ucidef_set_network_device_path_port,
which is similar to ucidef_set_network_device_path but takes an
additional argument where the user can specify the dev_port value.
The internal function preinit_config_port loops through
all network interfaces at the given PCI address and chooses the one
where the dev_port value matches.

This was tested on an x86_64 device using a Mellanox ConnectX-3 card.

Signed-off-by: Til Kaiser <mail@tk154.de>
Link: https://github.com/openwrt/openwrt/pull/16560
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-19 19:10:56 +02:00
..
base-files base-files: add ucidef_set_network_device_path_port function 2024-10-19 19:10:56 +02:00
boot uboot-ath79: refresh patches 2024-10-19 17:56:46 +02:00
devel gdb: Remove MIPS NSIG patch 2024-10-12 21:51:25 +02:00
firmware linux-firmware: add firmware for Realtek RTL8192DU 2024-10-19 17:36:51 +02:00
kernel kernel: modules: add boot flag to igc, mlx4, and mlx5 drivers 2024-10-19 19:10:56 +02:00
libs libbpf: bump to 1.4.6 2024-10-13 22:29:11 +03:00
network firewall: update to Git HEAD (2024-10-18) 2024-10-18 08:03:34 +02:00
system opkg: update to Git HEAD (2024-10-16) 2024-10-16 13:56:27 +02:00
utils package: busybox: update download link 2024-10-17 18:19:22 +02:00
Makefile sdk: fix APK key creation 2024-08-09 01:47:05 +02:00