Re: [Linuxptp-devel] [PATCH v2 26/27] Subscription time limit

2014-04-05 Thread Richard Cochran
On Mon, Mar 24, 2014 at 09:53:43AM +0100, Jiri Benc wrote: > Require subscriptions to be renewed regularly. This way, the subscription > automatically times out when phc2sys is killed. Can't this patch go before all of the phc2sys stuff? Thanks, Richard --

Re: [Linuxptp-devel] [PATCH v2 26/27] Subscription time limit

2014-04-05 Thread Richard Cochran
On Mon, Mar 24, 2014 at 09:53:43AM +0100, Jiri Benc wrote: > Require subscriptions to be renewed regularly. This way, the subscription > automatically times out when phc2sys is killed. > > Signed-off-by: Jiri Benc > --- > clock.c | 24 > phc2sys.c | 10 ++ >

Re: [Linuxptp-devel] [PATCH v2 12/27] Custom management TLV PORT_PROPERTIES_NP

2014-04-05 Thread Richard Cochran
On Mon, Mar 24, 2014 at 09:53:29AM +0100, Jiri Benc wrote: > Will be used by phc2sys to find out interfaces corresponding to ports. This looks okay to me. Same nits as before... > Signed-off-by: Jiri Benc > --- > clock.c |9 + > port.c | 16 > tlv.c | 20 +++

Re: [Linuxptp-devel] [PATCH v2 11/27] Event notification: port addition/removal

2014-04-05 Thread Richard Cochran
On Mon, Mar 24, 2014 at 09:53:28AM +0100, Jiri Benc wrote: > Add an event number for port adding/removal. As currently the ports are > static, this event is not emitted for now. Then this patch should wait unit dynamic ports are ready. Thanks, Richard ---

Re: [Linuxptp-devel] [PATCH v2 10/27] Custom management TLV PORT_ENUMERATION_NP

2014-04-05 Thread Richard Cochran
On Mon, Mar 24, 2014 at 09:53:27AM +0100, Jiri Benc wrote: > Used to enumerate all ports. With the future dynamic port adding/removal, > there may be holes in the port number sequence. For now, just fill it with > the sequence numbers. > > Signed-off-by: Jiri Benc > --- > clock.c | 16

Re: [Linuxptp-devel] [PATCH v2 06/27] Include TLV in replies to management commands

2014-04-05 Thread Richard Cochran
On Mon, Mar 24, 2014 at 09:53:23AM +0100, Jiri Benc wrote: > The standard requires management TLV in replies to commands: > > An acknowledge management message is a response to a command > management message. The value of the managementId shall be identical > to that in the comma

Re: [Linuxptp-devel] [PATCH v2 05/27] Event subscribing

2014-04-05 Thread Richard Cochran
On Mon, Mar 24, 2014 at 09:53:22AM +0100, Jiri Benc wrote: > This puts groundwork for event subscription and notification. The individual > events are added by subsequent patches. This patch is basically okay, but I have to pick a few nits... > +struct clock_subscriber { > + LIST_ENTRY(clock

Re: [Linuxptp-devel] [PATCH v2 04/27] uds: don't output "Connection refused"

2014-04-05 Thread Richard Cochran
On Mon, Mar 24, 2014 at 09:53:21AM +0100, Jiri Benc wrote: > When phc2sys is started before ptp4l or it is interrupted before ptp4l has > a chance to reply to its query, the "uds: sendto failed: Connection refused" > message is output. This is not an interesting message. > > Also, don't output the

Re: [Linuxptp-devel] [PATCH v2 03/27] Allow sending to a specified (unicast) address

2014-04-05 Thread Richard Cochran
I looked again at the unicast issue, and here is what I found. * 1588 has a very complex unicast subscription protocol (16.1). This is similar to what you have in this series, and so if we do it right then we will have a good basis for adding this later. * 1588 also allows basically any kind

Re: [Linuxptp-devel] [PATCH v2 00/27] automatic phc2sys configuration

2014-04-05 Thread Richard Cochran
On Mon, Mar 31, 2014 at 03:14:11PM +0200, Jiri Benc wrote: > > Has anybody have a chance to review this patchset? I'd appreciate any > feedback. I now have some cycles to work this in. It is a little too long of a series for me to merge all at once. I would like to focus first on patches 1-12. Pl

Re: [Linuxptp-devel] [PATCH v2 02/27] Move common code into port_prepare_and_send

2014-04-05 Thread Richard Cochran
On Mon, Mar 24, 2014 at 09:53:19AM +0100, Jiri Benc wrote: > The task of preparing the message for transmission and sending it appears > at many places. Unify them into a new function. > > Signed-off-by: Jiri Benc > --- Applied. Thanks, Richard -

Re: [Linuxptp-devel] [PATCH v2 01/27] Move check of TLV length for management COMMAND messages

2014-04-05 Thread Richard Cochran
On Mon, Mar 24, 2014 at 09:53:18AM +0100, Jiri Benc wrote: > Currently, it is assumed that the management TLV data of management COMMAND > messages is always empty. This is not true for the INITIALIZE command and > also for a custom command we'll be introducing. > > Move the check to msg_post_recv