diff options
author | Neale Ranns <nranns@cisco.com> | 2018-09-07 09:32:36 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-20 10:05:11 +0000 |
commit | 008dbe109ce2714be69ffb6549a0c0198a07f7d0 (patch) | |
tree | 6a4a4d7fb7c884036a6c4a1cda6e866d7087eb4c /src/vnet/dpo | |
parent | ee2e58f6ea802437ed52cc3e4d59b89d92757135 (diff) |
Route counters in the stats segment
route ADD API changed to return the stats segment index to use to read the counters
Change-Id: I2ef41e01eaa2f9cfaa49d9c88968897793825925
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/dpo')
-rw-r--r-- | src/vnet/dpo/load_balance.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/vnet/dpo/load_balance.c b/src/vnet/dpo/load_balance.c index ae95b6e1b3e..37f8ca1d89d 100644 --- a/src/vnet/dpo/load_balance.c +++ b/src/vnet/dpo/load_balance.c @@ -53,7 +53,16 @@ load_balance_t *load_balance_pool; /** * The one instance of load-balance main */ -load_balance_main_t load_balance_main; +load_balance_main_t load_balance_main = { + .lbm_to_counters = { + .name = "route-to", + .stat_segment_name = "/net/route/to", + }, + .lbm_via_counters = { + .name = "route-via", + .stat_segment_name = "/net/route/via", + } +}; f64 load_balance_get_multipath_tolerance (void) |