summaryrefslogtreecommitdiffstats
path: root/plugins/ila-plugin/ila/ila.api
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ila-plugin/ila/ila.api')
-rw-r--r--plugins/ila-plugin/ila/ila.api62
1 files changed, 62 insertions, 0 deletions
diff --git a/plugins/ila-plugin/ila/ila.api b/plugins/ila-plugin/ila/ila.api
new file mode 100644
index 00000000000..9315fbb02d0
--- /dev/null
+++ b/plugins/ila-plugin/ila/ila.api
@@ -0,0 +1,62 @@
+/** \brief Enable ILA processing of SIR-to-ILA packets on a given interface.
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param sw_if_index - The software interface index.
+ @param enable - Enable if not null, disable otherwise.
+*/
+define ila_iface
+{
+ u32 client_index;
+ u32 context;
+ u32 sw_if_index;
+ u8 enable;
+};
+
+define ila_iface_reply {
+ u32 context;
+ i32 retval;
+};
+
+/** \brief Add or delete an ILA entry.
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param type - The ILA type to be used.
+ Supported values:
+ 0: Interface Identifier (iid)
+ 1: Locally Unique Identifier (luid)
+ 3: IPv6 Virtual Network Identifier (vnid-ip6)
+ 4: Multicast Virtual Network Identifier (vnid-multicast)
+ @param sir_address - Standard Identifier Representation address which uniquely
+ identifies the ILA entry.
+ @param local_adj_index - The local FIB index if the entry is a local entry,
+ ~0 if the entry is not local (only used to translate from SIR to ILA).
+ @param csum_mode - The checksum mode for this entry.
+ Supported values:
+ 0: No action
+ 1: Neutral Mapping
+ 2: Adjust for Transport Layer
+ @param dir - The translation direction
+ Supported values:
+ 0: Bidirection
+ 1: SIR to ILA only
+ 2: ILA to SIR only
+ @param is_del - Whether the entry with the given SIR address should be deleted.
+*/
+define ila_add_del_entry {
+ u32 client_index;
+ u32 context;
+ u8 type;
+ u8 sir_address[16];
+ u64 locator;
+ u32 vnid;
+ u32 local_adj_index;
+ u8 csum_mode;
+ u8 dir;
+ u8 is_del;
+};
+
+define ila_add_del_entry_reply {
+ u32 context;
+ i32 retval;
+};
+