summaryrefslogtreecommitdiffstats
path: root/plugins/ila-plugin/ila/ila.api
blob: 9315fbb02d0efec35a0d0aa400d2376f4bb50f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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;
};