summaryrefslogtreecommitdiffstats
path: root/src/vnet/udp/udp_encap.h
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-03-20 01:47:35 -0700
committerChris Luke <chris_luke@comcast.com>2018-03-21 20:24:34 +0000
commit43b1f44571fd6989d6442723433cad28a5ab244f (patch)
tree1fe6d14f23e3263161879c36b929e405d4db5180 /src/vnet/udp/udp_encap.h
parent0cae3f737fcbfbef364fb8237faee08842f3fb68 (diff)
UDP Encap counters
Change-Id: Ib5639981dca0b11b2d62acf2c0963cc95c380f70 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/udp/udp_encap.h')
-rw-r--r--src/vnet/udp/udp_encap.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/vnet/udp/udp_encap.h b/src/vnet/udp/udp_encap.h
index b8f329dcbee..185d5e7f7f9 100644
--- a/src/vnet/udp/udp_encap.h
+++ b/src/vnet/udp/udp_encap.h
@@ -125,6 +125,19 @@ extern void udp_encap_contribute_forwarding (u32 id,
dpo_proto_t proto,
dpo_id_t * dpo);
+extern void udp_encap_get_stats (index_t uei, u64 * packets, u64 * bytes);
+
+/**
+ * Callback function invoked when walking all encap objects.
+ * Return non-zero to continue the walk.
+ */
+typedef int (*udp_encap_walk_cb_t) (index_t uei, void *ctx);
+
+/**
+ * Walk each of the encap objects
+ */
+extern void udp_encap_walk (udp_encap_walk_cb_t cb, void *ctx);
+
/**
* Pool of encaps
*/