]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: fix fdb notification flags
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 19 Mar 2014 16:47:49 +0000 (17:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 20:24:28 +0000 (16:24 -0400)
commit8761ec4d6a223b54b4111c722333628cf86ee1eb
tree0a105a5d58debe396c0c6ddad1e2bc271dbd98af
parent1610d166b6873604e007804463ead3d45056487d
rtnetlink: fix fdb notification flags

Commit 3feee79ad35a ("net: rtnetlink notify events for FDB NTF_SELF adds and
deletes") reuses the function nlmsg_populate_fdb_fill() to notify fdb events.
But this function was used only for dump and thus was always setting the
flag NLM_F_MULTI, which is wrong in case of a single notification.

Libraries like libnl will wait forever for NLMSG_DONE.

CC: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c