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:
parent
e86d47f667
commit
6e716af299
@ -261,6 +261,8 @@ void mqnic_register_phc(struct mqnic_dev *mdev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
mdev->ptp_clock_info.owner = THIS_MODULE;
|
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.max_adj = 100000000;
|
||||||
mdev->ptp_clock_info.n_alarm = 0;
|
mdev->ptp_clock_info.n_alarm = 0;
|
||||||
mdev->ptp_clock_info.n_ext_ts = 0;
|
mdev->ptp_clock_info.n_ext_ts = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user