aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nsim/nsim.api
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-07-28 19:20:40 -0700
committerDave Barach <openvpp@barachs.net>2020-07-31 19:34:20 +0000
commite6c3e8f0ee47799c76bdca362c4d75af62aacac3 (patch)
tree4a5bbbbb17f3aae3fe7be1a92c0ad147115ee8ff /src/plugins/nsim/nsim.api
parentb2f44bd8e7d226d851d4d05981914e642a4da571 (diff)
nsim: basic reorder support
Reorder delayed packets, i.e., flush instead of delay, with a configured rate. Type: feature Change-Id: Ib1294f5f1c9b6e98a12b1bb0be655e54facfed3a Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/plugins/nsim/nsim.api')
-rw-r--r--src/plugins/nsim/nsim.api26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/plugins/nsim/nsim.api b/src/plugins/nsim/nsim.api
index b9623a19943..65493252022 100644
--- a/src/plugins/nsim/nsim.api
+++ b/src/plugins/nsim/nsim.api
@@ -3,7 +3,7 @@
* @brief VPP control-plane API messages for the network delay simulator
*/
-option version = "2.1.1";
+option version = "2.2.1";
import "vnet/interface_types.api";
/** \brief enable / disable the network delay simulation cross-connect
@@ -61,6 +61,7 @@ autoreply define nsim_output_feature_enable_disable
*/
autoreply define nsim_configure
{
+ option deprecated="v21.01";
/* Client identifier, set from api_main.my_client_index */
u32 client_index;
@@ -75,4 +76,27 @@ autoreply define nsim_configure
option vat_help = "delay <time> bandwidth <bw> [packet-size <nn>] [packets-per-drop <nnnn>]";
};
+/** \brief configure the network delay simulation cross-connect
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param delay_in_usec - microseconds of link delay to simulate
+ @param average_packet_size - average packet size for wheel sizing
+ @param bandwidth_in_bits_per_second - bps for wheel sizing
+*/
+autoreply define nsim_configure2
+{
+ /* Client identifier, set from api_main.my_client_index */
+ u32 client_index;
+
+ /* Arbitrary context, so client can match reply to request */
+ u32 context;
+
+ /* Configuration parameters */
+ u32 delay_in_usec;
+ u32 average_packet_size;
+ u64 bandwidth_in_bits_per_second;
+ u32 packets_per_drop;
+ u32 packets_per_reorder;
+ option vat_help = "delay <time> bandwidth <bw> [packet-size <nn>] [packets-per-drop <nnnn>]";
+};