Commit ee4f56f4 authored by Vincent Bernat's avatar Vincent Bernat Committed by David S. Miller

bonding: fix value exported by Netlink for peer_notif_delay

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: 07a4ddec ("bonding: add an option to specify a delay between peer notifications")
Signed-off-by: default avatarVincent Bernat <vincent@bernat.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 333f7909
...@@ -547,7 +547,7 @@ static int bond_fill_info(struct sk_buff *skb, ...@@ -547,7 +547,7 @@ static int bond_fill_info(struct sk_buff *skb,
goto nla_put_failure; goto nla_put_failure;
if (nla_put_u32(skb, IFLA_BOND_PEER_NOTIF_DELAY, 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; goto nla_put_failure;
if (nla_put_u8(skb, IFLA_BOND_USE_CARRIER, bond->params.use_carrier)) if (nla_put_u8(skb, IFLA_BOND_USE_CARRIER, bond->params.use_carrier))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment