1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2016 IGEL Co., Ltd.
3 * Copyright(c) 2016-2018 Intel Corporation
5 #ifndef _RTE_ETH_VHOST_H_
6 #define _RTE_ETH_VHOST_H_
15 #include <rte_vhost.h>
20 struct rte_eth_vhost_queue_event {
27 * Get queue events from specified port.
28 * If a callback for below event is registered by
29 * rte_eth_dev_callback_register(), this function will describe what was
31 * - RTE_ETH_EVENT_QUEUE_STATE
32 * Multiple events may cause only one callback kicking, so call this function
38 * Pointer to a rte_eth_vhost_queue_event structure.
41 * - On failure, a negative value.
43 int rte_eth_vhost_get_queue_event(uint16_t port_id,
44 struct rte_eth_vhost_queue_event *event);
47 * Get the 'vid' value associated with the specified port.
50 * - On success, the 'vid' associated with 'port_id'.
51 * - On failure, a negative value.
53 int rte_eth_vhost_get_vid_from_port_id(uint16_t port_id);