Skip to content

Commit b4580d6

Browse files
David Aherngregkh
authored andcommitted
net: vrf: Fix setting NLM_F_EXCL flag when adding l3mdev rule
[ Upstream commit 426c87c ] Only need 1 l3mdev FIB rule. Fix setting NLM_F_EXCL in the nlmsghdr. Fixes: 1aa6c4f ("net: vrf: Add l3mdev rules on first device create") Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8c04e2a commit b4580d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/vrf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ static int vrf_fib_rule(const struct net_device *dev, __u8 family, bool add_it)
11241124
goto nla_put_failure;
11251125

11261126
/* rule only needs to appear once */
1127-
nlh->nlmsg_flags &= NLM_F_EXCL;
1127+
nlh->nlmsg_flags |= NLM_F_EXCL;
11281128

11291129
frh = nlmsg_data(nlh);
11301130
memset(frh, 0, sizeof(*frh));

0 commit comments

Comments
 (0)