diff options
author | Dimitri Staessens <[email protected]> | 2020-12-05 15:05:13 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2020-12-05 16:00:21 +0100 |
commit | 962b37bb28724bdf28abbe5d48350adba6000ed4 (patch) | |
tree | 7dab94fc1f13cd6c00b5de45bd730829959d2023 /src/ipcpd/unicast/pol-ca-ops.h | |
parent | 1bb26d793e8b95313769e4fcf530321076401390 (diff) | |
download | ouroboros-962b37bb28724bdf28abbe5d48350adba6000ed4.tar.gz ouroboros-962b37bb28724bdf28abbe5d48350adba6000ed4.zip |
ipcpd: Add RIB statistics for flow allocator
The RIB will now show some stats for the flow allocator, including
congestion avoidance statistics. This is needed before decoupling the
data transfer component and the flow allocator as some current stats
show in DT will move to FA.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd/unicast/pol-ca-ops.h')
-rw-r--r-- | src/ipcpd/unicast/pol-ca-ops.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ipcpd/unicast/pol-ca-ops.h b/src/ipcpd/unicast/pol-ca-ops.h index 3cb8a9d2..69bd0d21 100644 --- a/src/ipcpd/unicast/pol-ca-ops.h +++ b/src/ipcpd/unicast/pol-ca-ops.h @@ -45,6 +45,12 @@ struct pol_ca_ops { uint8_t (* calc_ecn)(int fd, size_t len); + + /* Optional, can be NULL */ + ssize_t (* print_stats)(void * ctx, + char * buf, + size_t len); + }; #endif /* OUROBOROS_IPCPD_UNICAST_POL_CA_OPS_H */ |