summaryrefslogtreecommitdiff
path: root/src/etc/udev/rules.d/63-hyperv-vf-net.rules
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/udev/rules.d/63-hyperv-vf-net.rules')
-rw-r--r--src/etc/udev/rules.d/63-hyperv-vf-net.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/etc/udev/rules.d/63-hyperv-vf-net.rules b/src/etc/udev/rules.d/63-hyperv-vf-net.rules
new file mode 100644
index 000000000..b4dcb5a39
--- /dev/null
+++ b/src/etc/udev/rules.d/63-hyperv-vf-net.rules
@@ -0,0 +1,5 @@
+ATTR{[dmi/id]sys_vendor}!="Microsoft Corporation", GOTO="end_hyperv_nic"
+
+ACTION=="add", SUBSYSTEM=="net", DRIVERS=="hv_pci", NAME="vf_%k"
+
+LABEL="end_hyperv_nic"