On 5/1/2023 4:22 AM, Eyal Itkin via Linuxptp-devel wrote:
> When delay_mechanism is set to "E2E" mode in the [global] section,
> it is applied only to non-UDS ports as UDS ports will override the
> delay_mechanism with "DM_AUTO". Still the UDS ports will be checked
> for hybrid_e2e and generate a false warning of: "hybrid_e2e only
> works with E2E".
> 
> Update the check so it would only cover non-UDS ports.
> 
> Signed-off-by: Eyal Itkin <eit...@nvidia.com>
> Reviewed-by: Rahul Rameshbabu <rrameshb...@nvidia.com>

I saw this recently too, and I think the fix is good.

Reviewed-by: Jacob Keller <jacob.e.kel...@intel.com>

> ---
>  port.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/port.c b/port.c
> index 8b2eb04..502cbf3 100644
> --- a/port.c
> +++ b/port.c
> @@ -3422,7 +3422,7 @@ struct port *port_open(const char *phc_device,
>               pr_err("%s: E2E TC needs E2E ports", p->log_name);
>               goto err_uc_service;
>       }
> -     if (p->hybrid_e2e && p->delayMechanism != DM_E2E) {
> +     if (!port_is_uds(p) && p->hybrid_e2e && p->delayMechanism != DM_E2E) {
>               pr_warning("%s: hybrid_e2e only works with E2E", p->log_name);
>       }
>       if (p->net_sync_monitor && !p->hybrid_e2e) {


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to