FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
virtio.c File Reference
+ Include dependency graph for virtio.c:

Go to the source code of this file.

Functions

static clib_error_tcall_read_ready (clib_file_t *uf)
 
clib_error_tvirtio_vring_init (vlib_main_t *vm, virtio_if_t *vif, u16 idx, u16 sz)
 
void virtio_free_buffers (vlib_main_t *vm, virtio_vring_t *vring)
 
clib_error_tvirtio_vring_free_rx (vlib_main_t *vm, virtio_if_t *vif, u32 idx)
 
clib_error_tvirtio_vring_free_tx (vlib_main_t *vm, virtio_if_t *vif, u32 idx)
 
void virtio_set_packet_coalesce (virtio_if_t *vif)
 
clib_error_tvirtio_set_packet_buffering (virtio_if_t *vif, u16 buffering_size)
 
static void virtio_vring_fill (vlib_main_t *vm, virtio_if_t *vif, virtio_vring_t *vring)
 
void virtio_vring_set_rx_queues (vlib_main_t *vm, virtio_if_t *vif)
 
void virtio_set_net_hdr_size (virtio_if_t *vif)
 
void virtio_show (vlib_main_t *vm, u32 *hw_if_indices, u8 show_descr, u32 type)
 
static clib_error_tvirtio_init (vlib_main_t *vm)
 

Variables

virtio_main_t virtio_main
 

Function Documentation

◆ call_read_ready()

static clib_error_t* call_read_ready ( clib_file_t uf)
static

Definition at line 47 of file virtio.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ virtio_free_buffers()

void virtio_free_buffers ( vlib_main_t vm,
virtio_vring_t vring 
)
inline

Definition at line 128 of file virtio.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ virtio_init()

static clib_error_t* virtio_init ( vlib_main_t vm)
static

Definition at line 615 of file virtio.c.

+ Here is the call graph for this function:

◆ virtio_set_net_hdr_size()

void virtio_set_net_hdr_size ( virtio_if_t vif)
inline

Definition at line 288 of file virtio.c.

+ Here is the caller graph for this function:

◆ virtio_set_packet_buffering()

clib_error_t* virtio_set_packet_buffering ( virtio_if_t vif,
u16  buffering_size 
)

Definition at line 203 of file virtio.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ virtio_set_packet_coalesce()

void virtio_set_packet_coalesce ( virtio_if_t vif)

Definition at line 188 of file virtio.c.

+ Here is the call graph for this function:

◆ virtio_show()

void virtio_show ( vlib_main_t vm,
u32 hw_if_indices,
u8  show_descr,
u32  type 
)
inline

Definition at line 298 of file virtio.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ virtio_vring_fill()

static void virtio_vring_fill ( vlib_main_t vm,
virtio_if_t vif,
virtio_vring_t vring 
)
static

Definition at line 225 of file virtio.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ virtio_vring_free_rx()

clib_error_t* virtio_vring_free_rx ( vlib_main_t vm,
virtio_if_t vif,
u32  idx 
)

Definition at line 143 of file virtio.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ virtio_vring_free_tx()

clib_error_t* virtio_vring_free_tx ( vlib_main_t vm,
virtio_if_t vif,
u32  idx 
)

Definition at line 165 of file virtio.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ virtio_vring_init()

clib_error_t* virtio_vring_init ( vlib_main_t vm,
virtio_if_t vif,
u16  idx,
u16  sz 
)

Definition at line 60 of file virtio.c.

+ Here is the call graph for this function:

◆ virtio_vring_set_rx_queues()

void virtio_vring_set_rx_queues ( vlib_main_t vm,
virtio_if_t vif 
)

Definition at line 238 of file virtio.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ virtio_main

virtio_main_t virtio_main

Definition at line 37 of file virtio.c.