FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
vmxnet3.c File Reference
+ Include dependency graph for vmxnet3.c:

Go to the source code of this file.

Macros

#define PCI_VENDOR_ID_VMWARE   0x15ad
 
#define PCI_DEVICE_ID_VMWARE_VMXNET3   0x07b0
 

Functions

static clib_error_tvmxnet3_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
static clib_error_tvmxnet3_interface_rx_mode_change (vnet_main_t *vnm, u32 hw_if_index, u32 qid, vnet_hw_interface_rx_mode mode)
 
static void vmxnet3_set_interface_next_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index)
 
 VNET_DEVICE_CLASS (vmxnet3_device_class,)
 
static u32 vmxnet3_flag_change (vnet_main_t *vnm, vnet_hw_interface_t *hw, u32 flags)
 
static void vmxnet3_write_mac (vmxnet3_device_t *vd)
 
static clib_error_tvmxnet3_provision_driver_shared (vlib_main_t *vm, vmxnet3_device_t *vd)
 
static void vmxnet3_enable_interrupt (vmxnet3_device_t *vd)
 
static void vmxnet3_disable_interrupt (vmxnet3_device_t *vd)
 
static clib_error_tvmxnet3_rxq_init (vlib_main_t *vm, vmxnet3_device_t *vd, u16 qid, u16 qsz)
 
static clib_error_tvmxnet3_txq_init (vlib_main_t *vm, vmxnet3_device_t *vd, u16 qid, u16 qsz)
 
static clib_error_tvmxnet3_device_init (vlib_main_t *vm, vmxnet3_device_t *vd, vmxnet3_create_if_args_t *args)
 
static void vmxnet3_irq_0_handler (vlib_pci_dev_handle_t h, u16 line)
 
static void vmxnet3_irq_1_handler (vlib_pci_dev_handle_t h, u16 line)
 
static u8 vmxnet3_queue_size_valid (u16 qsz)
 
void vmxnet3_create_if (vlib_main_t *vm, vmxnet3_create_if_args_t *args)
 
void vmxnet3_delete_if (vlib_main_t *vm, vmxnet3_device_t *vd)
 

Variables

vmxnet3_main_t vmxnet3_main
 
static pci_device_id_t vmxnet3_pci_device_ids []
 
static char * vmxnet3_tx_func_error_strings []
 

Macro Definition Documentation

#define PCI_DEVICE_ID_VMWARE_VMXNET3   0x07b0

Definition at line 26 of file vmxnet3.c.

#define PCI_VENDOR_ID_VMWARE   0x15ad

Definition at line 25 of file vmxnet3.c.

Function Documentation

void vmxnet3_create_if ( vlib_main_t vm,
vmxnet3_create_if_args_t args 
)

Definition at line 479 of file vmxnet3.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vmxnet3_delete_if ( vlib_main_t vm,
vmxnet3_device_t vd 
)

Definition at line 636 of file vmxnet3.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* vmxnet3_device_init ( vlib_main_t vm,
vmxnet3_device_t vd,
vmxnet3_create_if_args_t args 
)
static

Definition at line 305 of file vmxnet3.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vmxnet3_disable_interrupt ( vmxnet3_device_t vd)
inlinestatic

Definition at line 212 of file vmxnet3.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vmxnet3_enable_interrupt ( vmxnet3_device_t vd)
inlinestatic

Definition at line 201 of file vmxnet3.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 vmxnet3_flag_change ( vnet_main_t vnm,
vnet_hw_interface_t hw,
u32  flags 
)
static

Definition at line 121 of file vmxnet3.c.

+ Here is the caller graph for this function:

static clib_error_t* vmxnet3_interface_admin_up_down ( vnet_main_t vnm,
u32  hw_if_index,
u32  flags 
)
static

Definition at line 38 of file vmxnet3.c.

+ Here is the call graph for this function:

static clib_error_t* vmxnet3_interface_rx_mode_change ( vnet_main_t vnm,
u32  hw_if_index,
u32  qid,
vnet_hw_interface_rx_mode  mode 
)
static

Definition at line 64 of file vmxnet3.c.

+ Here is the call graph for this function:

static void vmxnet3_irq_0_handler ( vlib_pci_dev_handle_t  h,
u16  line 
)
static

Definition at line 431 of file vmxnet3.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vmxnet3_irq_1_handler ( vlib_pci_dev_handle_t  h,
u16  line 
)
static

Definition at line 444 of file vmxnet3.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* vmxnet3_provision_driver_shared ( vlib_main_t vm,
vmxnet3_device_t vd 
)
static

Definition at line 140 of file vmxnet3.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8 vmxnet3_queue_size_valid ( u16  qsz)
static

Definition at line 469 of file vmxnet3.c.

+ Here is the caller graph for this function:

static clib_error_t* vmxnet3_rxq_init ( vlib_main_t vm,
vmxnet3_device_t vd,
u16  qid,
u16  qsz 
)
static

Definition at line 223 of file vmxnet3.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vmxnet3_set_interface_next_node ( vnet_main_t vnm,
u32  hw_if_index,
u32  node_index 
)
static

Definition at line 81 of file vmxnet3.c.

+ Here is the call graph for this function:

static clib_error_t* vmxnet3_txq_init ( vlib_main_t vm,
vmxnet3_device_t vd,
u16  qid,
u16  qsz 
)
static

Definition at line 265 of file vmxnet3.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vmxnet3_write_mac ( vmxnet3_device_t vd)
static

Definition at line 127 of file vmxnet3.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VNET_DEVICE_CLASS ( vmxnet3_device_class  )

Variable Documentation

vmxnet3_main_t vmxnet3_main

Definition at line 28 of file vmxnet3.c.

pci_device_id_t vmxnet3_pci_device_ids[]
static
Initial value:
= {
{
.vendor_id = PCI_VENDOR_ID_VMWARE,
{0},
}
#define PCI_VENDOR_ID_VMWARE
Definition: vmxnet3.c:25
#define PCI_DEVICE_ID_VMWARE_VMXNET3
Definition: vmxnet3.c:26

Definition at line 30 of file vmxnet3.c.

char* vmxnet3_tx_func_error_strings[]
static
Initial value:
= {
#define _(n,s)
}
#define foreach_vmxnet3_tx_func_error
Definition: vmxnet3.h:19

Definition at line 100 of file vmxnet3.c.