af_packet: Add support for dump interfaces
[vpp.git] / src / vnet / devices / af_packet / af_packet.api
index 9fb2a20..1399011 100644 (file)
@@ -13,6 +13,8 @@
  * limitations under the License.
  */
 
+option version = "1.0.0";
+
 /** \brief Create host-interface
     @param client_index - opaque cookie to identify the sender
     @param context - sender context, to match reply w/ request
@@ -46,7 +48,7 @@ define af_packet_create_reply
     @param context - sender context, to match reply w/ request
     @param host_if_name - interface name
 */
-define af_packet_delete
+autoreply define af_packet_delete
 {
   u32 client_index;
   u32 context;
@@ -54,14 +56,35 @@ define af_packet_delete
   u8 host_if_name[64];
 };
 
-/** \brief Delete host-interface response
+/** \brief Set l4 offload ckecksum calculation
+    @param client_index - opaque cookie to identify the sender
     @param context - sender context, to match reply w/ request
-    @param retval - return value for request
 */
-define af_packet_delete_reply
+autoreply define af_packet_set_l4_cksum_offload
 {
+  u32 client_index;
   u32 context;
-  i32 retval;
+  
+  u8 sw_if_index;
+  u8 set;
+};
+
+/** \brief Dump af_packet interfaces request */
+define af_packet_dump
+{
+  u32 client_index;
+  u32 context;
+};
+
+/** \brief Reply for af_packet dump request
+    @param sw_if_index - software index of af_packet interface
+    @param host_if_name - interface name
+*/
+define af_packet_details
+{
+  u32 context;
+  u32 sw_if_index;
+  u8 host_if_name[64];
 };
 
 /*