mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
net: vrf: Fix setting NLM_F_EXCL flag when adding l3mdev rule
Only need 1 l3mdev FIB rule. Fix setting NLM_F_EXCL in the nlmsghdr.
Fixes: 1aa6c4f6b8
("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>
This commit is contained in:
parent
b47a57a273
commit
426c87caa2
1 changed files with 1 additions and 1 deletions
|
@ -1128,7 +1128,7 @@ static int vrf_fib_rule(const struct net_device *dev, __u8 family, bool add_it)
|
||||||
goto nla_put_failure;
|
goto nla_put_failure;
|
||||||
|
|
||||||
/* rule only needs to appear once */
|
/* rule only needs to appear once */
|
||||||
nlh->nlmsg_flags &= NLM_F_EXCL;
|
nlh->nlmsg_flags |= NLM_F_EXCL;
|
||||||
|
|
||||||
frh = nlmsg_data(nlh);
|
frh = nlmsg_data(nlh);
|
||||||
memset(frh, 0, sizeof(*frh));
|
memset(frh, 0, sizeof(*frh));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue