2 * Copyright (c) 2015-2016 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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 /** \brief vhost-user interface create request
17 @param client_index - opaque cookie to identify the sender
18 @param is_server - our side is socket server
19 @param sock_filename - unix socket filename, used to speak with frontend
20 @param use_custom_mac - enable or disable the use of the provided hardware address
21 @param mac_address - hardware address to use if 'use_custom_mac' is set
23 define create_vhost_user_if
28 u8 sock_filename[256];
30 u32 custom_dev_instance;
36 /** \brief vhost-user interface create response
37 @param context - sender context, to match reply w/ request
38 @param retval - return code for the request
39 @param sw_if_index - interface the operation is applied to
41 define create_vhost_user_if_reply
48 /** \brief vhost-user interface modify request
49 @param client_index - opaque cookie to identify the sender
50 @param is_server - our side is socket server
51 @param sock_filename - unix socket filename, used to speak with frontend
53 autoreply define modify_vhost_user_if
59 u8 sock_filename[256];
61 u32 custom_dev_instance;
64 /** \brief vhost-user interface delete request
65 @param client_index - opaque cookie to identify the sender
67 autoreply define delete_vhost_user_if
74 /** \brief Vhost-user interface details structure (fix this)
75 @param sw_if_index - index of the interface
76 @param interface_name - name of interface
77 @param virtio_net_hdr_sz - net header size
78 @param features - interface features
79 @param is_server - vhost-user server socket
80 @param sock_filename - socket filename
81 @param num_regions - number of used memory regions
83 define sw_interface_vhost_user_details
87 u8 interface_name[64];
88 u32 virtio_net_hdr_sz;
91 u8 sock_filename[256];
96 define sw_interface_vhost_user_dump
103 * eval: (c-set-style "gnu")