Add sw_interface_clear_stats API call
[vpp.git] / vpp / api / vpe.api
index d76a5c8..29cd1ba 100644 (file)
@@ -51,6 +51,7 @@ define want_interface_events_reply {
     @param interface_name - name of the interface
     @param link_duplex - 1 if half duplex, 2 if full duplex
     @param link_speed - 1 = 10M, 2 = 100M, 4 = 1G, 8 = 10G, 16 = 40G, 32 = 100G
+    @param link_MTU - max. transmittion unit 
     @param sub_if_id - A number 0-N to uniquely identify this subif on super if
     @param sub_dot1ad -  0 = dot1q, 1=dot1ad
     @param sub_number_of_tags - Number of tags (0 - 2)
@@ -88,6 +89,9 @@ manual_java define sw_interface_details {
 
     /* 1 = 10M, 2 = 100M, 4 = 1G, 8 = 10G, 16 = 40G, 32 = 100G */
     u8 link_speed;
+    
+    /* MTU */
+    u16 link_mtu;
 
     /* Subinterface ID. A number 0-N to uniquely identify this subinterface under the super interface*/
     u32 sub_id;
@@ -1903,6 +1907,8 @@ define l2_interface_vlan_tag_rewrite_reply {
     @param client_index - opaque cookie to identify the sender
     @param is_server - our side is socket server
     @param sock_filename - unix socket filename, used to speak with frontend
+    @param use_custom_mac - enable or disable the use of the provided hardware address
+    @param mac_address - hardware address to use if 'use_custom_mac' is set
 */
 define create_vhost_user_if {
    u32 client_index;
@@ -1911,6 +1917,8 @@ define create_vhost_user_if {
    u8 sock_filename[256];
    u8 renumber;
    u32 custom_dev_instance;
+   u8 use_custom_mac;
+   u8 mac_address[6];
 };
 
 /** \brief vhost-user interface create response
@@ -2834,3 +2842,23 @@ define get_node_graph_reply {
     i32 retval;
     u64 reply_in_shmem;
 };
+
+/** \brief Clear interface statistics
+    @param client_index - opaque cookie to identify the sender
+    @param context - sender context, to match reply w/ request
+    @param sw_if_index - index of the interface to clear statistics
+*/
+define sw_interface_clear_stats {
+    u32 client_index;
+    u32 context;
+    u32 sw_if_index;
+};
+
+/** \brief Reply to sw_interface_clear_stats 
+    @param context - sender context which was passed in the request
+    @param retval - return code of the set flags request
+*/
+define sw_interface_clear_stats_reply {
+    u32 context;
+    i32 retval;
+};