dryang / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
b8c242
From c0e530dc95fa7842ec1a48fd5df98956a76ae26c Mon Sep 17 00:00:00 2001
b8c242
From: Luca Boccassi <luca.boccassi@microsoft.com>
b8c242
Date: Fri, 26 Feb 2021 10:25:31 +0000
b8c242
Subject: [PATCH] udev rules: add rule to create /dev/ptp_hyperv
b8c242
b8c242
As for the KVM case, necessary for network cards with
b8c242
PTP devices when running a guest on HyperV
b8c242
b8c242
(cherry picked from commit 32e868f058da8b90add00b2958c516241c532b70)
b8c242
b8c242
Resolves: #1991834
b8c242
---
b8c242
 rules/50-udev-default.rules.in | 2 ++
b8c242
 1 file changed, 2 insertions(+)
b8c242
b8c242
diff --git a/rules/50-udev-default.rules.in b/rules/50-udev-default.rules.in
b8c242
index 191f56f42e..36657ce1a4 100644
b8c242
--- a/rules/50-udev-default.rules.in
b8c242
+++ b/rules/50-udev-default.rules.in
b8c242
@@ -83,4 +83,6 @@ KERNEL=="kvm", GROUP="kvm", MODE="@DEV_KVM_MODE@", OPTIONS+="static_node=kvm"
b8c242
 
b8c242
 SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm"
b8c242
 
b8c242
+SUBSYSTEM=="ptp", ATTR{clock_name}=="hyperv", SYMLINK += "ptp_hyperv"
b8c242
+
b8c242
 LABEL="default_end"