On Sat, Jul 15, 2017 at 09:33:10PM +0800, Hangbin Liu wrote: > Pass struct interface so we can use ts_iface in HW filter.
So the problem is that the raw layer should use name = iface->ts_iface but the others need name = iface->name Let's avoid touching so many files by solving this differently... > -int transport_open(struct transport *t, const char *name, > +int transport_open(struct transport *t, struct interface *iface, > struct fdarray *fda, enum timestamp_type tt) > { const char *name; switch (t->type) { case TRANS_IEEE_802_3: name = iface->ts_iface; break; default: name = iface->name; break; } > return t->open(t, name, fda, tt); > } ------------------------------------------------------------------------------ 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