aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp/stats/stats.md
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-09-24 05:25:00 -0700
committerFlorin Coras <florin.coras@gmail.com>2018-09-27 19:59:44 +0000
commitec11b13a21b2becc1d1bd746a04624d17b26583f (patch)
treef3b432a3713a8edd2041ff025157d7b0803be580 /src/vpp/stats/stats.md
parent7d426535b4e98731193cc0265b83f2336dcdf5b3 (diff)
Trivial: Cleanup some typos.
This is a new commit for code under a different maintainer. Change-Id: I79fa403fec6a312238a9a4b18b35dbcafaa05439 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vpp/stats/stats.md')
-rw-r--r--src/vpp/stats/stats.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpp/stats/stats.md b/src/vpp/stats/stats.md
index d66c31bb636..dd14a188e47 100644
--- a/src/vpp/stats/stats.md
+++ b/src/vpp/stats/stats.md
@@ -36,7 +36,7 @@ typedef struct {
```
#### Writer
-On the VPP side there is a single writer (controlled by a spinlock). When the writer starts it sets in_progress=1, continues with the update of the data-structues, and when done, bumps epoch++ and sets in_progress=0.
+On the VPP side there is a single writer (controlled by a spinlock). When the writer starts it sets in_progress=1, continues with the update of the data-structures, and when done, bumps epoch++ and sets in_progress=0.
#### Readers
If in_progress=1, there is no point continuing, so reader sits spinning on the in_progress flag until it is 0. Then it sets start_epoch = epoch and continues copying out the counter data it is interested in, while doing strict boundary checks on all offsets / pointers. When the reader is done, it checks if in_progress=1 or if epoch != start_epoch. If either of those are true is discards the data read.