On Wed, Jul 25, 2018 at 05:13:03PM +0000, Patel, Vedang wrote:
> In the description above, you mentioned that we should use masterOnly
> and slaveOnly. But, from the pseudo code, it seems like you just want
> to make decision based only on slaveOnly option. Which one do you
> prefer?

The code should require that one of these is set when BMCA == noop.

> If we are just using a single option, I would prefer masterOnly since
> it is a per-port variable and extending support to bridges will be
> easy.

How about this?  Leave slaveOnly global.  When BMCA == noop then check
port option masterOnly, then global slaveOnly, else fail.

Later on, a bridge that has both port types can set slaveOnly as the
global default and configure masterOnly per port as needed.

Thanks,
Richard

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to