Saturday, March 31, 2018 11:33 PM > + int (*dscmp)(struct dataset *a, struct dataset *b); > - else if (dscmp(&fc->dataset, &p->best->dataset) > 0) > + else if (p->dscmp(&fc->dataset, &p->best->dataset) > 0) > + p->dscmp = dscmp;
> + int (*dscmp)(struct dataset *a, struct dataset *b); > + c->dscmp = dscmp; > - if (!best || dscmp(&fc->dataset, &best->dataset) > 0) > + if (!best || c->dscmp(&fc->dataset, &best->dataset) > 0) Should it be possible to have different data set comparison algorithms in clock and port struct? Otherwise, why not use the dscmp in clock struct? /Anders ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/linuxptp-devel
