Skip to content
Commit 472681d5 authored by MINOURA Makoto / 箕浦 真's avatar MINOURA Makoto / 箕浦 真 Committed by David S. Miller
Browse files

net: ndo_fdb_dump should report -EMSGSIZE to rtnl_fdb_dump.



When the send skbuff reaches the end, nlmsg_put and friends returns
-EMSGSIZE but it is silently thrown away in ndo_fdb_dump. It is called
within a for_each_netdev loop and the first fdb entry of a following
netdev could fit in the remaining skbuff.  This breaks the mechanism
of cb->args[0] and idx to keep track of the entries that are already
dumped, which results missing entries in bridge fdb show command.

Signed-off-by: default avatarMinoura Makoto <minoura@valinux.co.jp>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4c0b6eaf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment