diff options
author | Damjan Marion <damarion@cisco.com> | 2017-12-04 20:03:37 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-12-08 19:33:49 +0000 |
commit | 2df39094d20ae60d2e04316f4ec058f81778cf64 (patch) | |
tree | 94db0b2286ac490bf412e6de117faa7e0eda2d00 /src/vnet/devices/tap/tapv2.api | |
parent | 20ec7165007bd38359ea516fe5389e9e828a9d62 (diff) |
tapv2: multiple improvements
- change interface naming scheme
- rework netlink code
- add option to set link address, namespace
Change-Id: Icf667babb3077a07617b0b87c45c957e345cb4d1
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/devices/tap/tapv2.api')
-rw-r--r-- | src/vnet/devices/tap/tapv2.api | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/vnet/devices/tap/tapv2.api b/src/vnet/devices/tap/tapv2.api index 03788607fe5..a2062696709 100644 --- a/src/vnet/devices/tap/tapv2.api +++ b/src/vnet/devices/tap/tapv2.api @@ -24,11 +24,15 @@ vl_api_version 1.0.0 /** \brief Initialize a new tap interface with the given paramters @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request + @param id - interface id, 0xffff means auto @param use_random_mac - let the system generate a unique mac address - @param tap_name - name to associate with the new interface @param mac_address - mac addr to assign to the interface if use_radom not set @param tx_ring_sz - the number of entries of TX ring @param rx_ring_sz - the number of entries of RX ring + @param host_mac_addr_set - host side interface mac address should be set + @param host_mac_addr - host side interface mac address + @param host_if_name_set - host side interface name should be set + @param host_if_name - host side interface name @param host_namespace_set - host namespece should be set @param host_namespace - host namespace to attach interface to @param host_bridge_set - host bridge should be set @@ -44,13 +48,17 @@ define tap_create_v2 { u32 client_index; u32 context; + u32 id; u8 use_random_mac; - u8 tap_name[64]; u8 mac_address[6]; u16 tx_ring_sz; /* optional, default is 256 entries, must be power of 2 */ u16 rx_ring_sz; /* optional, default is 256 entries, must be power of 2 */ u8 host_namespace_set; u8 host_namespace[64]; + u8 host_mac_addr_set; + u8 host_mac_addr[6]; + u8 host_if_name_set; + u8 host_if_name[64]; u8 host_bridge_set; u8 host_bridge[64]; u8 host_ip4_addr_set; |