mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-07 03:01:36 -04:00
milan-avb: keep the last-known gPTP grandmaster across transient ptp4l management-query timeouts so the ADP does not flap to advertising self-as-GM
This commit is contained in:
parent
024f7201cb
commit
a6ad8b3b62
1 changed files with 2 additions and 2 deletions
|
|
@ -230,14 +230,14 @@ static void gptp_invalidate_state(struct gptp *gptp)
|
|||
gptp->path_trace_valid;
|
||||
struct avb_aem_desc_avb_interface *iface;
|
||||
|
||||
gptp->data_valid = false;
|
||||
/* keep last-known GM/data_valid across transient ptp4l query timeouts (see avb_gptp_get_grandmaster_id) */
|
||||
gptp->data_valid_current = false;
|
||||
gptp->path_trace_valid = false;
|
||||
gptp->path_trace_count = 0;
|
||||
gptp->steps_removed = 0;
|
||||
gptp->offset_from_master_scaled_ns = 0;
|
||||
memset(gptp->clock_id, 0, sizeof(gptp->clock_id));
|
||||
memset(gptp->gm_id, 0, sizeof(gptp->gm_id));
|
||||
/* gm_id kept (last-known grandmaster) so the ADP does not flap to self on a missed query */
|
||||
memset(gptp->path_trace, 0, sizeof(gptp->path_trace));
|
||||
|
||||
iface = get_avb_interface(gptp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue