> -----Original Message-----
> From: Richard Cochran <richardcoch...@gmail.com>
> Sent: Monday, November 30, 2020 10:58 AM
> To: Keller, Jacob E <jacob.e.kel...@intel.com>
> Cc: linuxptp-devel@lists.sourceforge.net
> Subject: Re: [Linuxptp-devel] [PATCH 4/4] pmc_agent: Simplify the method that
> gets of the number of local ports.
>
> On Mon, Nov 30, 2020 at 10:41:47AM -0800, Jacob Keller wrote:
> > On 11/28/2020 9:08 AM, Richard Cochran wrote:
> > > +int pmc_agent_get_number_ports(struct pmc_agent *node)
> > > +{
> > > + if (!node->dds_valid) {
> > > + return -1;
> > > + }
> > > + return node->dds.numberPorts;
> > > +}
> > > +
> >
> > Based on your previous patches suggestions, shouldn't this be
> > "pmc_agent_query_number_ports", considering that this is returning a
> > cached value?
>
> It is the other way round, query = live, get = cached.
>
> Thanks,
> Richard
Ahh.. that's not how I was reading the commit messages. Hmm. Makes sense, then!
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel