Re: [Linuxptp-devel] [PATCHv2 3/9] rtnl: update rtgenmsg to ifinfomsg when request link info
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2017-08-05 07:42:36
|
On Sat, Jul 15, 2017 at 09:33:05PM +0800, Hangbin Liu wrote: > diff --git a/port.c b/port.c > index 849a7c1..21ab3ea 100644 > --- a/port.c > +++ b/port.c > @@ -1512,7 +1512,7 @@ static int port_initialize(struct port *p) > if (p->fda.fd[FD_RTNL] == -1) > p->fda.fd[FD_RTNL] = rtnl_open(); > if (p->fda.fd[FD_RTNL] >= 0) > - rtnl_link_query(p->fda.fd[FD_RTNL]); > + rtnl_link_query(p->fda.fd[FD_RTNL], 0); This call is in a port specific method. Can't you already provide the port's index here? Thanks, Richard |