|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
30 #include <vnet/devices/virtio/virtio.api_enum.h>
31 #include <vnet/devices/virtio/virtio.api_types.h>
33 #define REPLY_MSG_ID_BASE virtio_main.msg_id_base
99 "virtio gso api flag mismatch");
101 (
int) VIRTIO_FLAG_CSUM_OFFLOAD),
102 "virtio checksum offload api flag mismatch");
104 (
int) VIRTIO_FLAG_GRO_COALESCE),
105 "virtio gro coalesce api flag mismatch");
107 "virtio packed api flag mismatch");
109 (
int) VIRTIO_FLAG_IN_ORDER),
110 "virtio in-order api flag mismatch");
112 (
int) VIRTIO_FLAG_BUFFERING),
113 "virtio buffering api flag mismatch");
152 vl_api_virtio_pci_delete_reply_t *rmp;
160 rv = VNET_API_ERROR_INVALID_SW_IF_INDEX;
176 rmp->retval = htonl (
rv);
222 if (vif->
type == VIRTIO_IF_TYPE_PCI)
229 #include <vnet/devices/virtio/virtio.api.c>
vnet_device_class_t virtio_device_class
void virtio_pci_create_if(vlib_main_t *vm, virtio_pci_create_if_args_t *args)
vl_api_interface_index_t sw_if_index
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
static clib_error_t * virtio_pci_api_hookup(vlib_main_t *vm)
#define clib_memcpy(d, s, n)
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
vl_api_pci_address_t pci_addr
Reply for virtio pci create reply.
@ VIRTIO_API_FLAG_CSUM_OFFLOAD
static void vl_api_virtio_pci_create_v2_t_handler(vl_api_virtio_pci_create_v2_t *mp)
vl_api_mac_address_t mac_address
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vl_api_pci_address_t pci_addr
static void vl_api_sw_interface_virtio_pci_dump_t_handler(vl_api_sw_interface_virtio_pci_dump_t *mp)
virtio_main_t virtio_main
#define pool_foreach(VAR, POOL)
Iterate through pool.
@ VIRTIO_API_FLAG_GRO_COALESCE
Initialize a new virtio pci interface with the given parameters.
Dump virtio pci interfaces request.
virtio_vring_t * txq_vrings
int virtio_pci_delete_if(vlib_main_t *vm, virtio_if_t *vif)
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
vnet_main_t * vnet_get_main(void)
vl_api_pci_address_t pci_addr
@ VIRTIO_API_FLAG_IN_ORDER
An API client registration, only in vpp/vlib.
static void setup_message_id_table(api_main_t *am)
static vnet_hw_interface_t * vnet_get_sup_hw_interface_api_visible_or_null(vnet_main_t *vnm, u32 sw_if_index)
void pci_address_encode(const vlib_pci_addr_t *in, vl_api_pci_address_t *out)
u8 checksum_offload_enabled
Delete virtio pci interface.
Reply for virtio pci interface dump request.
#define STATIC_ASSERT(truth,...)
static void vl_api_virtio_pci_delete_t_handler(vl_api_virtio_pci_delete_t *mp)
vl_api_interface_index_t sw_if_index
vl_api_mac_address_t mac_addr
Reply for virtio pci create reply.
vl_api_interface_index_t sw_if_index
static void virtio_pci_send_sw_interface_details(vpe_api_main_t *am, vl_api_registration_t *reg, virtio_if_t *vif, u32 context)
bool checksum_offload_enabled
static void vl_api_virtio_pci_create_t_handler(vl_api_virtio_pci_create_t *mp)
vl_api_interface_index_t sw_if_index
VLIB_API_INIT_FUNCTION(virtio_pci_api_hookup)
virtio_vring_t * rxq_vrings
void pci_address_decode(const vl_api_pci_address_t *in, vlib_pci_addr_t *out)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
vl_api_virtio_flags_t virtio_flags
static vlib_main_t * vlib_get_main(void)
vl_api_mac_address_t mac_address
Initialize a new virtio pci interface with the given parameters.
@ VIRTIO_API_FLAG_BUFFERING
#define REPLY_MSG_ID_BASE
vpe_api_main_t vpe_api_main
void * vl_msg_api_alloc(int nbytes)