Skip to content

Commit 44703a8

Browse files
committed
T8329: Add support to handle Azure MANA interfaces in the udev naming rules
1 parent 1b98452 commit 44703a8

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

src/etc/udev/rules.d/65-vyos-net.rules

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@
44
ACTION!="add", GOTO="vyos_net_end"
55
SUBSYSTEM!="net", GOTO="vyos_net_end"
66

7-
# Fallback path for Azure VFs: if any Azure Mellanox VF still appears as plain
8-
# ethN, rename it to vf_ethX before persistent synthetic interface naming runs
9-
# to prevent it from incorrectly being considered as a synthetic interface.
7+
# Fallback path for Azure VF interfaces: if a VF still appears as plain ethN,
8+
# rename it to vf_ethX before persistent synthetic interface naming runs to
9+
# prevent it from incorrectly being considered as a synthetic interface.
1010
ATTR{[dmi/id]sys_vendor}=="Microsoft Corporation", DRIVERS=="mlx*_core", KERNEL=="eth*", PROGRAM="vyos_vf_name %k", NAME="%c", GOTO="vyos_net_end"
11+
ATTR{[dmi/id]sys_vendor}=="Microsoft Corporation", DRIVERS=="mana", KERNEL=="eth*", PROGRAM="vyos_vf_name %k", NAME="%c", GOTO="vyos_net_end"
1112

1213
# VF interfaces are not handled by vyos_net_name, so skip them.
13-
# KERNEL=="vf_*" catches already-renamed VFs.
14-
# DRIVERS=="mlx*_core" on Azure catches VFs that reached here in an unexpected
15-
# intermediate state, are still named ethN/eN and must not be remapped
16-
# by vyos_net_name. This guard is intentionally scoped to Microsoft Azure
17-
# to avoid excluding bare-metal Mellanox NICs on physical hardware, which do
14+
# KERNEL=="vf_*" catches already-renamed Mellanox and MANA VFs.
15+
# DRIVERS=="mlx*_core" and DRIVERS=="mana" on Azure catch VF interfaces
16+
# in an unexpected intermediate state (still named ethN/eN) that must not
17+
# be remapped by vyos_net_name.
18+
# This guard is intentionally scoped to Microsoft Azure to
19+
# avoid excluding bare-metal Mellanox NICs on physical hardware, which do
1820
# need persistent naming via vyos_net_name.
1921
KERNEL=="vf_*", GOTO="vyos_net_end"
2022
ATTR{[dmi/id]sys_vendor}=="Microsoft Corporation", DRIVERS=="mlx*_core", GOTO="vyos_net_end"
23+
ATTR{[dmi/id]sys_vendor}=="Microsoft Corporation", DRIVERS=="mana", GOTO="vyos_net_end"
2124

2225
# Do name change for ethernet and wireless devices only
2326
KERNEL!="eth*|wlan*|e*", GOTO="vyos_net_end"

0 commit comments

Comments
 (0)