Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENA PTP device does not have the unique symlink unlike other clock devices: $ sudo rmmod ena && sudo modprobe ena phc_enable=1 $ ls -al /dev/*ptp* crw-------. 1 root root 245, 0 May 29 17:34 /dev/ptp0 $ sudo modprobe ptp_kvm $ ls -al /dev/*ptp* crw-------. 1 root root 245, 0 May 29 17:34 /dev/ptp0 crw-------. 1 root root 245, 1 May 29 17:35 /dev/ptp1 lrwxrwxrwx. 1 root root 4 May 29 17:35 /dev/ptp_kvm -> ptp1 This could lead customers to use a wrong device. Let's add a udev rule to create the unique symlink for ENA PTP as ptp-ena. With the new rule: $ sudo rmmod ena && sudo modprobe ena phc_enable=1 $ ls -al /dev/*ptp* lrwxrwxrwx. 1 root root 4 May 29 17:37 /dev/ptp-ena -> ptp0 crw-------. 1 root root 245, 0 May 29 17:37 /dev/ptp0 crw-------. 1 root root 245, 1 May 29 17:35 /dev/ptp1 lrwxrwxrwx. 1 root root 4 May 29 17:35 /dev/ptp_kvm -> ptp1 Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
- Loading branch information