Re: [PATCH] net: ndo_fdb_dump should report -EMSGSIZE to rtnl_fdb_dump.

2016-02-26 Thread David Miller
From: MINOURA Makoto / 箕浦 真 Date: Thu, 25 Feb 2016 14:20:48 +0900 > 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 fi

[PATCH] net: ndo_fdb_dump should report -EMSGSIZE to rtnl_fdb_dump.

2016-02-24 Thread MINOURA Makoto / 箕浦 真
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 id