]> git.baikalelectronics.ru Git - kernel.git/commit
net: rtnetlink: fdb dflt dump must set idx used for cb->arg[0]
authorJohn Fastabend <john.fastabend@gmail.com>
Fri, 29 Mar 2013 08:18:37 +0000 (08:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2013 19:26:27 +0000 (15:26 -0400)
commiteec597a43278ff24e7057baefccd357a97baa35b
tree36a6d964325d02fea88be8b5a2a6ac69f904eb2e
parentd9f3d40f6c6106094fbf8e3a4489a9f127e023e7
net: rtnetlink: fdb dflt dump must set idx used for cb->arg[0]

In rtnl_fdb_dump() when the fdb_dump ndo op is not populated
we never set the idx value so that cb->arg[0] is always 0.
Resulting in a endless loop of messages.

Introduced with this commit,

commit 51e6e85d3e6803f234afad5964abf061a3232af1
Author: Vlad Yasevich <vyasevic@redhat.com>
Date:   Wed Mar 6 15:39:42 2013 +0000

    net: generic fdb support for drivers without ndo_fdb_<op>

CC: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c