Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108368
b: refs/heads/master
c: e93615d
h: refs/heads/master
v: v3
  • Loading branch information
Simon Horman authored and Sven Wegener committed Aug 11, 2008
1 parent b8586ab commit b124963
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 519e49e888458649dde453d36c08b7f3432525dc
refs/heads/master: e93615d0866a974afc7148172f8382e2af48c985
15 changes: 14 additions & 1 deletion trunk/net/ipv4/ipvs/ip_vs_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,21 @@ static void
ip_vs_zero_stats(struct ip_vs_stats *stats)
{
spin_lock_bh(&stats->lock);
memset(stats, 0, (char *)&stats->lock - (char *)stats);

stats->conns = 0;
stats->inpkts = 0;
stats->outpkts = 0;
stats->inbytes = 0;
stats->outbytes = 0;

stats->cps = 0;
stats->inpps = 0;
stats->outpps = 0;
stats->inbps = 0;
stats->outbps = 0;

ip_vs_zero_estimator(stats);

spin_unlock_bh(&stats->lock);
}

Expand Down

0 comments on commit b124963

Please sign in to comment.