RE: [net-next] rtnl: fix the loop index update error in rtnl_dump_ifinfo()

2016-11-20 Thread 张胜举
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Sunday, November 20, 2016 11:15 AM > To: zhangshen...@cmss.chinamobile.com > Cc: netdev@vger.kernel.org; d...@cumulusnetworks.com > Subject: Re: [net-next] rtnl: fix the loop ind

Re: [net-next] rtnl: fix the loop index update error in rtnl_dump_ifinfo()

2016-11-19 Thread David Miller
From: Zhang Shengju Date: Sat, 19 Nov 2016 23:28:32 +0800 > If the link is filtered out, loop index should also be updated. If not, > loop index will not be correct. > > Signed-off-by: Zhang Shengju Applied to 'net' and queued up for -stable. Bug fixes should always be targetted at 'net' not

Re: [net-next] rtnl: fix the loop index update error in rtnl_dump_ifinfo()

2016-11-19 Thread David Ahern
On 11/19/16 10:28 AM, Zhang Shengju wrote: > If the link is filtered out, loop index should also be updated. If not, > loop index will not be correct. > > Signed-off-by: Zhang Shengju > --- > net/core/rtnetlink.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/core/

[net-next] rtnl: fix the loop index update error in rtnl_dump_ifinfo()

2016-11-19 Thread Zhang Shengju
If the link is filtered out, loop index should also be updated. If not, loop index will not be correct. Signed-off-by: Zhang Shengju --- net/core/rtnetlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index db313ec..f4b9350 100