X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vpp%2Fapi%2Fvpe.api;h=29cd1badcbc3ec9c6852295799c06d2d17b7efcd;hb=00bbf276be22fa0458366d4dd3f4daf4e55d13e7;hp=d76a5c8eb8802dbb4b9a134a7dffd8cd6f88f12a;hpb=b44e9bc90b634b07d5f93a731a95028adc73bcbc;p=vpp.git diff --git a/vpp/api/vpe.api b/vpp/api/vpe.api index d76a5c8eb88..29cd1badcbc 100644 --- a/vpp/api/vpe.api +++ b/vpp/api/vpe.api @@ -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; +};