Hi Jacob,

On Thu, Jan 07, 2021 at 02:33:56PM EST, Jacob Keller wrote:
>
>
>On 1/6/2021 11:39 AM, vincent.cheng...@renesas.com wrote:
>> 
>> diff --git a/port.c b/port.c
>> index db3e9ac..bdc73e4 100644
>> --- a/port.c
>> +++ b/port.c
>> @@ -2568,7 +2568,8 @@ void port_link_status(void *ctx, int linkup, int 
>> ts_index)
>>                                     "timestamping mode, set link status down 
>> by force.",
>>                                     interface_label(p->iface));
>>                              p->link_status = LINK_DOWN | LINK_STATE_CHANGED;
>> -                    } else if (p->phc_index != 
>> interface_phc_index(p->iface)) {
>> +                    } else if ((p->phc_index != 
>> interface_phc_index(p->iface)) &&
>> +                               (!p->phc_from_cmdline)) {
>>                              p->phc_index = interface_phc_index(p->iface);
>>  
>
>Makes sense. But maybe we would want to do a warning about when the PHC
>index on the networking device no longer matches the command line? (like
>we do during the initial setup?)

Good idea.  Will add in same message from initial setup in next submission.


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

Reply via email to