blob: 457bc74075a2278935d14b4265a85e4e6924b482 [file] [log] [blame]
Neale Ranns17ff3c12018-07-04 10:24:24 -07001/*
2 * Copyright (c) 2018 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/** \file
17
18 This file defines vpe control-plane API messages for
19 the Linux kernel PIPE device driver
20*/
21
Jakub Grajciardf40cb52019-09-25 10:07:28 +020022option version = "1.0.1";
23
24import "vnet/interface_types.api";
Neale Ranns17ff3c12018-07-04 10:24:24 -070025
Paul Vinciguerra97c998c2019-10-29 16:11:09 -040026/** \brief Initialize a new pipe interface with the given parameters
Neale Ranns17ff3c12018-07-04 10:24:24 -070027 @param client_index - opaque cookie to identify the sender
28 @param context - sender context, to match reply w/ request
29 @param is_specified - if non-0, a specific user_instance is being requested
30 @param user_instance - requested instance, ~0 => dynamically allocate
31*/
32define pipe_create
33{
34 u32 client_index;
35 u32 context;
Jakub Grajciardf40cb52019-09-25 10:07:28 +020036 bool is_specified;
Neale Ranns17ff3c12018-07-04 10:24:24 -070037 u32 user_instance;
38};
39
40/** \brief Reply for pipe create reply
41 @param context - returned sender context, to match reply w/ request
42 @param retval - return code
Neale Ranns208c29a2018-04-11 08:08:30 -070043 @param sw_if_index - software index allocated for the new pipe parent interface
44 Use the parent interface for link up/down and to delete
Neale Ranns17ff3c12018-07-04 10:24:24 -070045 @param pipe_sw_if_index - the two SW indicies that form the ends of the pipe.
46*/
47define pipe_create_reply
48{
49 u32 context;
50 i32 retval;
Jakub Grajciardf40cb52019-09-25 10:07:28 +020051 vl_api_interface_index_t sw_if_index;
52 vl_api_interface_index_t pipe_sw_if_index[2];
Neale Ranns17ff3c12018-07-04 10:24:24 -070053};
54
55/** \brief Delete pipe interface
56 @param client_index - opaque cookie to identify the sender
57 @param context - sender context, to match reply w/ request
Paul Vinciguerra97c998c2019-10-29 16:11:09 -040058 @param sw_if_index - interface index of existing parent pipe interface
Neale Ranns17ff3c12018-07-04 10:24:24 -070059*/
60autoreply define pipe_delete
61{
62 u32 client_index;
63 u32 context;
Jakub Grajciardf40cb52019-09-25 10:07:28 +020064 vl_api_interface_index_t sw_if_index;
Neale Ranns17ff3c12018-07-04 10:24:24 -070065};
66
67/** \brief Dump pipe interfaces request */
68define pipe_dump
69{
70 u32 client_index;
71 u32 context;
72};
73
74/** \brief Reply for pipe dump request
75 @param sw_if_index - software index of pipe interface
Neale Ranns208c29a2018-04-11 08:08:30 -070076 @param sw_if_index - software index allocated for the pipe parent interface
Neale Ranns17ff3c12018-07-04 10:24:24 -070077 @param pipe_sw_if_index - the two SW indicies that form the ends of the pipe.
78 @param instance - instance allocated
79*/
80define pipe_details
81{
82 u32 context;
Jakub Grajciardf40cb52019-09-25 10:07:28 +020083 vl_api_interface_index_t sw_if_index;
84 vl_api_interface_index_t pipe_sw_if_index[2];
Neale Ranns17ff3c12018-07-04 10:24:24 -070085 u32 instance;
86};
87
88/*
89 * Local Variables:
90 * eval: (c-set-style "gnu")
91 * End:
92 */