called through a shared memory interface.
*/
-option version = "1.4.0";
+option version = "1.6.0";
+
+import "vpp/api/vpe_types.api";
/*
* Note: API placement cleanup in progress
* GENEVE APIs: see .../src/vnet/geneve/{geneve.api, geneve_api.c}
* LLDP APIs: see .../src/vnet/lldp/{lldp.api, lldp_api.c}
* AF-PACKET APIs: see ... /vnet/devices/af_packet/{af_packet.api, af_packet_api.c}
- * NETMAP APIs: see ... /src/vnet/devices/netmap/{netmap.api, netmap_api.c}
* VHOST-USER APIs: see .../vnet/devices/virtio/{vhost_user.api, vhost_user_api.c}
* VXLAN GPE APIs: see .../src/vnet/vxlan-gpe/{vxlan_gpe.api, vxlan_gpe_api.c}
* GRE APIs: see .../src/vnet/gre/{gre.api, gre_api.c}
{
u32 client_index;
u32 context;
- string cmd;
+ string cmd[];
};
/** \brief vpe parser cli string response
{
u32 context;
i32 retval;
- string reply;
+ string reply[];
};
/** \brief Get node index using name request
{
u32 context;
i32 retval;
- string program [limit = 32];
- string version [limit = 32];
- string build_date [limit = 32];
- string build_directory [limit = 256];
+ string program[32];
+ string version[32];
+ string build_date[32];
+ string build_directory[256];
};
@param core - thread pinned to actual physical core.
@param cpu_socket - thread is running on which cpu socket.
*/
-typeonly define thread_data
+typedef thread_data
{
u32 id;
u8 name[64];
u32 next_index;
};
-enum log_level {
- VPE_API_LOG_LEVEL_EMERG = 0, /* emerg */
- VPE_API_LOG_LEVEL_ALERT = 1, /* alert */
- VPE_API_LOG_LEVEL_CRIT = 2, /* crit */
- VPE_API_LOG_LEVEL_ERR = 3, /* err */
- VPE_API_LOG_LEVEL_WARNING = 4, /* warn */
- VPE_API_LOG_LEVEL_NOTICE = 5, /* notice */
- VPE_API_LOG_LEVEL_INFO = 6, /* info */
- VPE_API_LOG_LEVEL_DEBUG = 7, /* debug */
- VPE_API_LOG_LEVEL_DISABLED = 8, /* disabled */
-};
-
define log_dump {
u32 client_index;
u32 context;
- f64 start_timestamp;
+ vl_api_timestamp_t start_timestamp;
};
define log_details {
u32 context;
- f64 timestamp_ticks;
+ vl_api_timestamp_t timestamp;
vl_api_log_level_t level;
- string timestamp [limit=24];
- string msg_class [limit=32];
- string message [limit=256];
+ string msg_class[32];
+ string message[256];
};
/** \brief Show the current system timestamp.
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
*/
-define show_vpe_system_time_ticks
+define show_vpe_system_time
{
u32 client_index;
u32 context;
};
-/** \brief Reply for show vpe system time ticks.
+/** \brief Reply for show vpe system time.
@param context - sender context which was passed in the request
@param retval - return value
- @param vpe_system_time_ticks - the time in ticks of the host system.
+ @param vpe_system_time - the time in seconds since epoch of the host system.
*/
-define show_vpe_system_time_ticks_reply
+define show_vpe_system_time_reply
{
u32 context;
i32 retval;
- f64 vpe_system_time_ticks;
+ vl_api_timestamp_t vpe_system_time;
};
/** \brief f64 types are not standardized across the wire. Sense wire format in each direction by sending the f64 value 1.0.