Skip to content

Commit

Permalink
bonding: fix value exported by Netlink for peer_notif_delay
Browse files Browse the repository at this point in the history
IFLA_BOND_PEER_NOTIF_DELAY was set to the value of downdelay instead
of peer_notif_delay. After this change, the correct value is exported.

Fixes: 07a4dde ("bonding: add an option to specify a delay between peer notifications")
Signed-off-by: Vincent Bernat <vincent@bernat.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vincent Bernat authored and David S. Miller committed Jul 9, 2019
1 parent 333f790 commit ee4f56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bonding/bond_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ static int bond_fill_info(struct sk_buff *skb,
goto nla_put_failure;

if (nla_put_u32(skb, IFLA_BOND_PEER_NOTIF_DELAY,
bond->params.downdelay * bond->params.miimon))
bond->params.peer_notif_delay * bond->params.miimon))
goto nla_put_failure;

if (nla_put_u8(skb, IFLA_BOND_USE_CARRIER, bond->params.use_carrier))
Expand Down

0 comments on commit ee4f56f

Please sign in to comment.