Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
avf: add option to specify interface name
[vpp.git]
/
src
/
plugins
/
avf
/
avf.h
diff --git
a/src/plugins/avf/avf.h
b/src/plugins/avf/avf.h
index
14d7819
..
467b5d7
100644
(file)
--- a/
src/plugins/avf/avf.h
+++ b/
src/plugins/avf/avf.h
@@
-26,7
+26,7
@@
_(0, INITIALIZED, "initialized") \
_(1, ERROR, "error") \
_(2, ADMIN_UP, "admin-up") \
_(0, INITIALIZED, "initialized") \
_(1, ERROR, "error") \
_(2, ADMIN_UP, "admin-up") \
- _(3,
IOVA, "iov
a") \
+ _(3,
VA_DMA, "vaddr-dm
a") \
_(4, LINK_UP, "link-up") \
_(5, SHARED_TXQ_LOCK, "shared-txq-lock") \
_(6, ELOG, "elog")
_(4, LINK_UP, "link-up") \
_(5, SHARED_TXQ_LOCK, "shared-txq-lock") \
_(6, ELOG, "elog")
@@
-85,6
+85,7
@@
typedef struct
avf_rx_desc_t *descs;
u32 *bufs;
u16 n_enqueued;
avf_rx_desc_t *descs;
u32 *bufs;
u16 n_enqueued;
+ u8 int_mode;
} avf_rxq_t;
typedef struct
} avf_rxq_t;
typedef struct
@@
-110,10
+111,13
@@
typedef struct
u32 hw_if_index;
vlib_pci_dev_handle_t pci_dev_handle;
void *bar0;
u32 hw_if_index;
vlib_pci_dev_handle_t pci_dev_handle;
void *bar0;
+ u8 *name;
/* queues */
avf_rxq_t *rxqs;
avf_txq_t *txqs;
/* queues */
avf_rxq_t *rxqs;
avf_txq_t *txqs;
+ u16 n_tx_queues;
+ u16 n_rx_queues;
/* Admin queues */
avf_aq_desc_t *atq;
/* Admin queues */
avf_aq_desc_t *atq;
@@
-185,8
+189,6
@@
typedef struct
avf_device_t *devices;
avf_per_thread_data_t *per_thread_data;
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;
vlib_log_class_t log_class;
@@
-199,7
+201,9
@@
extern avf_main_t avf_main;
typedef struct
{
vlib_pci_addr_t addr;
typedef struct
{
vlib_pci_addr_t addr;
+ u8 *name;
int enable_elog;
int enable_elog;
+ u16 rxq_num;
u16 rxq_size;
u16 txq_size;
/* return */
u16 rxq_size;
u16 txq_size;
/* return */
@@
-213,8
+217,6
@@
void avf_delete_if (vlib_main_t * vm, avf_device_t * ad);
extern vlib_node_registration_t avf_input_node;
extern vnet_device_class_t avf_device_class;
extern vlib_node_registration_t avf_input_node;
extern vnet_device_class_t avf_device_class;
-uword avf_interface_tx (vlib_main_t * vm, vlib_node_runtime_t * node,
- vlib_frame_t * frame);
/* format.c */
format_function_t format_avf_device;
/* format.c */
format_function_t format_avf_device;
@@
-287,6
+289,17
@@
typedef struct
avf_rx_vector_entry_t rxve;
} avf_input_trace_t;
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 */
/*
#endif /* AVF_H */
/*