|
4 | 4 | ACTION!="add", GOTO="vyos_net_end" |
5 | 5 | SUBSYSTEM!="net", GOTO="vyos_net_end" |
6 | 6 |
|
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. |
10 | 11 | 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" |
11 | 13 |
|
12 | 14 | # VF interfaces are not handled by vyos_net_name, so skip them. |
13 | 15 | # 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. |
19 | 19 | KERNEL=="vf_*", GOTO="vyos_net_end" |
20 | 20 | 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" |
21 | 22 |
|
22 | 23 | # Do name change for ethernet and wireless devices only |
23 | 24 | KERNEL!="eth*|wlan*|e*", GOTO="vyos_net_end" |
|
0 commit comments