ice: Fix E810 PTP reset flow
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): CADEbmW0Yu2Csd++EZG--S+t2PEveB5PbUrooGdYnpumEqxF5Xg@mail.gmail.com
PATCH v2 1/1 ice: Fix E810 PTP reset flow
Quoted 35 lines · Michal Schmidt
Quoted 3 lines · Jonathan Toppins
I am not on the intel wired lan email list so I do not have an email to reply to directly
Jon,
please subscribe to it, via this page:
https://lists.osuosl.org/mailman/listinfo/intel-wired-lanQuoted 23 lines
drivers/net/ethernet/intel/ice/ice_main.c +3
-0@@ -6737,6 +6737,9 @@ static void ice_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type) goto err_vsi_rebuild; } +/* configure PTP timestamping after VSI rebuild */ +ice_ptp_cfg_timestamp (pf, false); + err =ice_vsi_rebuild_by_type (pf,ICE_VSI_SWITCHDEV_CTRL );if (err) {dev_err(dev, "Switchdev CTRL VSI rebuild failed: %d\n",
err);[jtoppins]
The indention here looks incorrect and implies the call should be inside an if-statement. Is this placed in the correct location?
Quoted 6 lines
Quoted 2 lines
-Jon
Also, isn't it strange that the second argument to
ice_ptp_cfg_timestamp()is always "false" everywhere the function is called?
Yes it is but that was added with upstream commit 77a781155a65 ("ice:
enable receive hardware timestamping"), I would rather not muddy the patch with fixing this too. That should be another patch to remove the useless parameter list argument.
-Jon