]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
bonding: fix value exported by Netlink for peer_notif_delay
authorVincent Bernat <vincent@bernat.ch>
Sat, 6 Jul 2019 21:01:08 +0000 (23:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2019 02:28:44 +0000 (19:28 -0700)
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: 07a4ddec3ce9 ("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>
drivers/net/bonding/bond_netlink.c

index a259860a72086371a01f943b820476ffd1237329..b43b51646b11a6b7b9a8284cbb48d3d456cfdd78 100644 (file)
@@ -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))