Skip to content

Commit 875ac56

Browse files
committed
T8329: Add support for Azure MANA interfaces in the VF naming rules
1 parent 5795d33 commit 875ac56

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@
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 VFs: if any Azure Mellanox/MANA VF still appears as
8+
# plain ethN, rename it to vf_ethX before persistent synthetic interface
9+
# naming runs to prevent it from incorrectly being considered as a synthetic
10+
# interface.
1011
ATTR{[dmi/id]sys_vendor}=="Microsoft Corporation", DRIVERS=="mlx*_core", KERNEL=="eth*", PROGRAM="vyos_vf_name %k", NAME="%c", GOTO="vyos_net_end"
12+
ATTR{[dmi/id]sys_vendor}=="Microsoft Corporation", DRIVERS=="mana", KERNEL=="eth*", PROGRAM="vyos_vf_name %k", NAME="%c", GOTO="vyos_net_end"
1113

1214
# VF interfaces are not handled by vyos_net_name, so skip them.
1315
# 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
18-
# need persistent naming via vyos_net_name.
16+
# DRIVERS=="mlx*_core"/"mana" on Azure catches VFs that reached here in an
17+
# unexpected intermediate state, are still named ethN/eN and must not be
18+
# remapped by vyos_net_name.
1919
KERNEL=="vf_*", GOTO="vyos_net_end"
2020
ATTR{[dmi/id]sys_vendor}=="Microsoft Corporation", DRIVERS=="mlx*_core", GOTO="vyos_net_end"
21+
ATTR{[dmi/id]sys_vendor}=="Microsoft Corporation", DRIVERS=="mana", GOTO="vyos_net_end"
2122

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

0 commit comments

Comments
 (0)