|
@@ -382,11 +382,17 @@ void i40e_ptp_set_increment(struct i40e_pf *pf)
|
|
|
incval = I40E_PTP_1GB_INCVAL;
|
|
|
break;
|
|
|
case I40E_LINK_SPEED_100MB:
|
|
|
- dev_warn(&pf->pdev->dev,
|
|
|
- "%s: 1588 functionality is not supported at 100 Mbps. Stopping the PHC.\n",
|
|
|
- __func__);
|
|
|
+ {
|
|
|
+ static int warn_once;
|
|
|
+
|
|
|
+ if (!warn_once) {
|
|
|
+ dev_warn(&pf->pdev->dev,
|
|
|
+ "1588 functionality is not supported at 100 Mbps. Stopping the PHC.\n");
|
|
|
+ warn_once++;
|
|
|
+ }
|
|
|
incval = 0;
|
|
|
break;
|
|
|
+ }
|
|
|
case I40E_LINK_SPEED_40GB:
|
|
|
default:
|
|
|
incval = I40E_PTP_40GB_INCVAL;
|