Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sonic-net/SONiC
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d0180d8e5ddefbbe50aad4e3b21f56f173f446cd
Choose a base ref
..
head repository: sonic-net/SONiC
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9fa8d878f170d31736ecac5d03c976ca6afe34f4
Choose a head ref
Showing with 3 additions and 0 deletions.
  1. +3 −0 doc/dhcp_relay/DHCPv4-per-interface-counter.md
3 changes: 3 additions & 0 deletions doc/dhcp_relay/DHCPv4-per-interface-counter.md
Original file line number Diff line number Diff line change
@@ -80,6 +80,9 @@ In this stage, dhcpmon would do some preparations, there are 2 points need to be
}
```

2. Init DB/check dounter
dhcpmon would create counter for corresponding interfaces in process memory and STATE_DB and set them to be 0.

With above structure, packets processing and all writing actions to cache counter in process memory would be done in **main thread**, and all writing actions to STATE_DB would be done in **DB update thread**.

### Per-interface counting (Main thread)