1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Set PTP clock name

This commit is contained in:
Alex Forencich 2022-02-02 18:41:19 -08:00
parent e86d47f667
commit 6e716af299

View File

@ -261,6 +261,8 @@ void mqnic_register_phc(struct mqnic_dev *mdev)
}
mdev->ptp_clock_info.owner = THIS_MODULE;
snprintf(mdev->ptp_clock_info.name, sizeof(mdev->ptp_clock_info.name),
"%s_ptp", mdev->name);
mdev->ptp_clock_info.max_adj = 100000000;
mdev->ptp_clock_info.n_alarm = 0;
mdev->ptp_clock_info.n_ext_ts = 0;