diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2024-01-25 13:57:54 -0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-01-30 11:49:04 +0100 |
commit | 803bef817807d2d36c930dada20c96fffae0dd19 (patch) | |
tree | f4340840dc5210c2493c8b0123df72b898ffafbf /net/unix/af_unix.c | |
parent | 1abefdca85e8664374f53c7bc80d5f5f827ce711 (diff) |
ice: factor out ice_ptp_rebuild_owner()
The ice_ptp_reset() function uses a goto to skip past clock owner
operations if performing a PF reset or if the device is not the clock
owner. This is a bit confusing. Factor this out into
ice_ptp_rebuild_owner() instead.
The ice_ptp_reset() function is called by ice_rebuild() to restore PTP
functionality after a device reset. Follow the convention set by the
ice_main.c file and rename this function to ice_ptp_rebuild(), in the
same way that we have ice_prepare_for_reset() and
ice_ptp_prepare_for_reset().
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions