Message ID | 20190906094703.21300-1-nicolas.dichtel@6wind.com |
---|---|
State | Accepted |
Delegated to: | David Miller |
Headers | show |
Series | [net,v2] bridge/mdb: remove wrong use of NLM_F_MULTI | expand |
From: Nicolas Dichtel <nicolas.dichtel@6wind.com> Date: Fri, 6 Sep 2019 11:47:02 +0200 > NLM_F_MULTI must be used only when a NLMSG_DONE message is sent at the end. > In fact, NLMSG_DONE is sent only at the end of a dump. > > Libraries like libnl will wait forever for NLMSG_DONE. > > Fixes: 949f1e39a617 ("bridge: mdb: notify on router port add and del") > CC: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> > Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> > Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Applied and queued up for -stable.
diff --git a/net/bridge/br_mdb.c b/net/bridge/br_mdb.c index bf6acd34234d..63f9c08625f0 100644 --- a/net/bridge/br_mdb.c +++ b/net/bridge/br_mdb.c @@ -437,7 +437,7 @@ static int nlmsg_populate_rtr_fill(struct sk_buff *skb, struct nlmsghdr *nlh; struct nlattr *nest; - nlh = nlmsg_put(skb, pid, seq, type, sizeof(*bpm), NLM_F_MULTI); + nlh = nlmsg_put(skb, pid, seq, type, sizeof(*bpm), 0); if (!nlh) return -EMSGSIZE;