Skip to contentSkip to conversation

ipvsadm: Don't report persistentconns as activeconns

PATCH Applied Simon Horman 2 participants 3 messages Jul 20, 2010 – Jul 21, 2010 2 messages not in the archive IPVS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Simon Horman

author maintainer
#1 lore raw
Quoted 6 lines · Simon Horman

This fixes what appears to be a typo in the netlink client code whereby the activeconns is read as activeconns and then overwritten by persistentconns. The result is that the active connection count reported by ipvsadm -L is wrong if the code is compiled to use the netlink interface.

Quoted 6 lines

---

Wensong, please consider applying this patch to ipvsadm.

Wensong, Ping.

Quoted 18 lines

Index: ipvsadm-1.25/libipvs/libipvs.c
===================================================================

libipvs/libipvs.c +1 -2
@@ -747,7 +747,7 @@ static int ipvs_dests_parse_cb(struct nl
 	d->entrytable[i].l_threshold = nla_get_u32(dest_attrs[IPVS_DEST_ATTR_L_THRESH]);
 	d->entrytable[i].activeconns = nla_get_u32(dest_attrs[IPVS_DEST_ATTR_ACTIVE_CONNS]);
 	d->entrytable[i].inactconns = nla_get_u32(dest_attrs[IPVS_DEST_ATTR_INACT_CONNS]);
-	d->entrytable[i].activeconns = nla_get_u32(dest_attrs[IPVS_DEST_ATTR_PERSIST_CONNS]);
+	d->entrytable[i].persistconns = nla_get_u32(dest_attrs[IPVS_DEST_ATTR_PERSIST_CONNS]);
 	d->entrytable[i].af = d->af;
 
 	if (ipvs_parse_stats(&(d->entrytable[i].stats),
 
--

To unsubscribe from this list: send the line "unsubscribe lvs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Applied, thanks a lot!

Wensong

Quoted 35 lines · Simon Horman
Quoted 6 lines · Simon Horman

This fixes what appears to be a typo in the netlink client code whereby the activeconns is read as activeconns and then overwritten by persistentconns. The result is that the active connection count reported by ipvsadm -L is wrong if the code is compiled to use the netlink interface.

Quoted 6 lines

---

Wensong, please consider applying this patch to ipvsadm.

Wensong, Ping.

Quoted 18 lines

Index: ipvsadm-1.25/libipvs/libipvs.c
===================================================================

libipvs/libipvs.c    2010-02-18 16:57:49.000000000 +0900 renamed from libipvs/libipvs.c       2010-02-18 16:57:46.000000000 +0900 +1 -2
@@ -747,7 +747,7 @@ static int ipvs_dests_parse_cb(struct nl
       d->entrytable[i].l_threshold = nla_get_u32(dest_attrs[IPVS_DEST_ATTR_L_THRESH]);
       d->entrytable[i].activeconns = nla_get_u32(dest_attrs[IPVS_DEST_ATTR_ACTIVE_CONNS]);
       d->entrytable[i].inactconns = nla_get_u32(dest_attrs[IPVS_DEST_ATTR_INACT_CONNS]);
-     d->entrytable[i].activeconns = nla_get_u32(dest_attrs[IPVS_DEST_ATTR_PERSIST_CONNS]);
+     d->entrytable[i].persistconns = nla_get_u32(dest_attrs[IPVS_DEST_ATTR_PERSIST_CONNS]);
       d->entrytable[i].af = d->af;
 
       if (ipvs_parse_stats(&(d->entrytable[i].stats),
 
--

To unsubscribe from this list: send the line "unsubscribe lvs-devel" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

author maintainer
#4 lore raw
Quoted 1 line · Wensong Zhang

Applied, thanks a lot!

Thanks.