_(0, INITIALIZED, "initialized") \
_(1, ERROR, "error") \
_(2, ADMIN_UP, "admin-up") \
- _(3, IOVA, "iova") \
+ _(3, VA_DMA, "vaddr-dma") \
_(4, LINK_UP, "link-up") \
_(5, SHARED_TXQ_LOCK, "shared-txq-lock") \
_(6, ELOG, "elog")
u32 hw_if_index;
vlib_pci_dev_handle_t pci_dev_handle;
void *bar0;
+ u8 *name;
/* queues */
avf_rxq_t *rxqs;
avf_device_t *devices;
avf_per_thread_data_t *per_thread_data;
- vlib_physmem_region_index_t physmem_region;
- int physmem_region_alloc;
vlib_log_class_t log_class;
typedef struct
{
vlib_pci_addr_t addr;
+ u8 *name;
int enable_elog;
+ u16 rxq_num;
u16 rxq_size;
u16 txq_size;
/* return */
avf_rx_vector_entry_t rxve;
} avf_input_trace_t;
+#define foreach_avf_tx_func_error \
+_(NO_FREE_SLOTS, "no free tx slots")
+
+typedef enum
+{
+#define _(f,s) AVF_TX_ERROR_##f,
+ foreach_avf_tx_func_error
+#undef _
+ AVF_TX_N_ERROR,
+} avf_tx_func_error_t;
+
#endif /* AVF_H */
/*