X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp%2Fstats%2Fstats.api;h=bd1c3f634fe737574fc62dce719e4a736325fe8a;hb=048a4e5a000017d0d632ebf02dcc23d9bf9ccf72;hp=79816dbe83efd956e5ff60fba943e25b79c4d8b5;hpb=ff92efe1074e338f91e59d9c27125d102516e7bf;p=vpp.git diff --git a/src/vpp/stats/stats.api b/src/vpp/stats/stats.api index 79816dbe83e..bd1c3f634fe 100644 --- a/src/vpp/stats/stats.api +++ b/src/vpp/stats/stats.api @@ -55,6 +55,11 @@ service { rpc want_ip6_nbr_stats returns want_ip6_nbr_stats_reply events vnet_ip6_nbr_counters; + rpc want_udp_encap_stats + returns want_udp_encap_stats_reply + events vnet_udp_encap_counters; + rpc map_stats_segment + returns map_stats_segment_reply; }; /** \brief Want Stats, enable/disable ALL stats updates @@ -436,6 +441,46 @@ define stats_get_poller_delay_reply u32 delay; }; +/** \brief Want UDP encap Stats, register for continuous stats + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param enable - 1 = enable stats, 0 = disable + @param pid - pid of process requesting stats updates +*/ +autoreply define want_udp_encap_stats +{ + u32 client_index; + u32 context; + u32 enable; + u32 pid; +}; + +/** \brief Stat for one UDP encap object + @param id - The ID of the object, same as passed for the create + @param packets - number of packets sent + @param bytes - number of bytes sent +*/ +typeonly manual_print manual_endian define udp_encap_counter +{ + u32 id; + u64 packets; + u64 bytes; +}; + +manual_print manual_endian define vnet_udp_encap_counters +{ + u32 timestamp; + u32 count; + vl_api_udp_encap_counter_t c[count]; +}; + +autoreply define map_stats_segment +{ + u32 client_index; + u32 context; +}; + + /* * Local Variables: * eval: (c-set-style "gnu")