25 #define foreach_avf_device_flags \ 26 _(0, INITIALIZED, "initialized") \ 27 _(1, ERROR, "error") \ 28 _(2, ADMIN_UP, "admin-up") \ 30 _(4, LINK_UP, "link-up") \ 31 _(5, SHARED_TXQ_LOCK, "shared-txq-lock") \ 36 #define _(a, b, c) AVF_DEVICE_F_##b = (1 << a), 41 typedef volatile struct 58 #ifdef CLIB_HAVE_VEC256 66 typedef volatile struct 71 #ifdef CLIB_HAVE_VEC128 156 #define AVF_RX_VECTOR_SZ VLIB_FRAME_SIZE 239 if ((last == 0) && (first == 31))
242 value &= (1 << (first - last + 1)) - 1;
250 if ((last == 0) && (first == 63))
253 value &= (1 << (first - last + 1)) - 1;
272 return *(
volatile u32 *) (ad->
bar0 + addr);
279 asm volatile (
"":::
"memory");
#define CLIB_CACHE_LINE_ALIGN_MARK(mark)
STATIC_ASSERT(VNET_DEVICE_INPUT_N_NEXT_NODES< 256,"too many next nodes")
static u64 avf_get_u64_bits(void *start, int offset, int first, int last)
virtchnl_link_speed_t link_speed
static u64 avf_get_u64(void *start, int offset)
static heap_elt_t * last(heap_header_t *h)
format_function_t format_avf_device
struct _vnet_device_class vnet_device_class_t
format_function_t format_avf_input_trace
#define foreach_avf_device_flags
vnet_device_class_t avf_device_class
static u32 avf_reg_read(avf_device_t *ad, u32 addr)
static u32 avf_get_u32_bits(void *start, int offset, int first, int last)
vlib_pci_dev_handle_t pci_dev_handle
void avf_create_if(vlib_main_t *vm, avf_create_if_args_t *args)
static heap_elt_t * first(heap_header_t *h)
static u32 avf_get_u32(void *start, int offset)
u32 vlib_pci_dev_handle_t
static void avf_reg_flush(avf_device_t *ad)
vlib_node_registration_t avf_input_node
(constructor) VLIB_REGISTER_NODE (avf_input_node)
vlib_log_class_t log_class
u32 per_interface_next_index
static void avf_set_u32(void *start, int offset, u32 value)
vlib_buffer_t buffer_template
virtchnl_pf_event_t * events
static void avf_reg_write(avf_device_t *ad, u32 addr, u32 val)
virtchnl_eth_stats_t eth_stats
struct _vlib_node_registration vlib_node_registration_t
template key/value backing page structure
void avf_delete_if(vlib_main_t *vm, avf_device_t *ad)
format_function_t format_avf_device_name
enum @376 avf_process_event_t
struct clib_bihash_value offset
template key/value backing page structure
avf_per_thread_data_t * per_thread_data
STATIC_ASSERT_SIZEOF(avf_rx_desc_t, 32)
u8 vlib_physmem_region_index_t
vlib_physmem_region_index_t physmem_region
uword avf_interface_tx(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)