diff options
author | Damjan Marion <damarion@cisco.com> | 2023-11-22 16:25:55 +0000 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2023-11-25 12:39:25 +0000 |
commit | ddf6cec37027547ff7cc61e15bb8080664d41514 (patch) | |
tree | 6896d6e6a050a43344a22d0c4bc080db092c9caf /src/vnet/dev/dev.api | |
parent | 07a62cc236978a0f01ec8be70bdd1d3e8fa27f71 (diff) |
dev: initial set of APIs
Type: improvement
Change-Id: I9ecbf705d460a1744f36c7005b08097dc58d9522
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/dev/dev.api')
-rw-r--r-- | src/vnet/dev/dev.api | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/src/vnet/dev/dev.api b/src/vnet/dev/dev.api new file mode 100644 index 00000000000..552b778949b --- /dev/null +++ b/src/vnet/dev/dev.api @@ -0,0 +1,86 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright(c) 2022 Cisco Systems, Inc. + */ + +option version = "0.0.1"; + +enumflag dev_flags : u32 +{ + VL_API_DEV_FLAG_NO_STATS = 0x1, +}; + +enumflag dev_port_flags : u32 +{ + VL_API_DEV_PORT_FLAG_INTERRUPT_MODE = 0x1, +}; + +autoendian define dev_attach +{ + u32 client_index; + u32 context; + string device_id[48]; + string driver_name[16]; + vl_api_dev_flags_t flags; + string args[]; +}; + +autoendian define dev_attach_reply +{ + u32 context; + u32 dev_index; + i32 retval; + string error_string[]; +}; + +autoendian define dev_detach +{ + u32 client_index; + u32 context; + u32 dev_index; +}; + +autoendian define dev_detach_reply +{ + u32 context; + i32 retval; + string error_string[]; +}; + +autoendian define dev_create_port_if +{ + u32 client_index; + u32 context; + u32 dev_index; + string intf_name[32]; + u16 num_rx_queues; + u16 num_tx_queues; + u16 rx_queue_size; + u16 tx_queue_size; + u16 port_id; + vl_api_dev_port_flags_t flags; + string args[]; +}; + +autoendian define dev_create_port_if_reply +{ + u32 client_index; + u32 context; + u32 sw_if_index; + i32 retval; + string error_string[]; +}; + +autoendian define dev_remove_port_if +{ + u32 client_index; + u32 context; + u32 sw_if_index; +}; + +autoendian define dev_remove_port_if_reply +{ + u32 context; + i32 retval; + string error_string[]; +}; + |