dpdk: use explicit types in api
[vpp.git] / src / plugins / dpdk / api / dpdk.api
index 5ded450..40bc736 100644 (file)
@@ -13,7 +13,8 @@
  * limitations under the License.
  */
 
-vl_api_version 1.0.0
+option version = "1.0.0";
+import "vnet/interface_types.api";
 
 /** \brief DPDK interface HQoS pipe profile set request
     @param client_index - opaque cookie to identify the sender
@@ -26,10 +27,11 @@ vl_api_version 1.0.0
 autoreply define sw_interface_set_dpdk_hqos_pipe {
     u32 client_index;
     u32 context;
-    u32 sw_if_index;
+    vl_api_interface_index_t sw_if_index;
     u32 subport;
     u32 pipe;
     u32 profile;
+    option vat_help = "rx sw_if_index <id> subport <subport-id> pipe <pipe-id> profile <profile-id>";
 };
 
 /** \brief DPDK interface HQoS subport parameters set request
@@ -45,12 +47,13 @@ autoreply define sw_interface_set_dpdk_hqos_pipe {
 autoreply define sw_interface_set_dpdk_hqos_subport {
     u32 client_index;
     u32 context;
-    u32 sw_if_index;
+    vl_api_interface_index_t sw_if_index;
     u32 subport;
     u32 tb_rate;
     u32 tb_size;
     u32 tc_rate[4];
     u32 tc_period;
+    option vat_help = "rx sw_if_index <id> subport <subport-id> [rate <n>] [bktsize <n>] [tc0 <n>] [tc1 <n>] [tc2 <n>] [tc3 <n>] [period <n>]\n";
 };
 
 /** \brief DPDK interface HQoS tctbl entry set request
@@ -64,10 +67,11 @@ autoreply define sw_interface_set_dpdk_hqos_subport {
 autoreply define sw_interface_set_dpdk_hqos_tctbl {
     u32 client_index;
     u32 context;
-    u32 sw_if_index;
+    vl_api_interface_index_t sw_if_index;
     u32 entry;
     u32 tc;
     u32 queue;
+    option vat_help = "rx sw_if_index <id> entry <n> tc <n> queue <n>";
 };
 
 /*