20 #define foreach_avf_device_flags \ 21 _(0, INITIALIZED, "initialized") \ 22 _(1, ERROR, "error") \ 23 _(2, ADMIN_UP, "admin-up") \ 25 _(4, LINK_UP, "link-up") \ 26 _(5, SHARED_TXQ_LOCK, "shared-txq-lock") \ 31 #define _(a, b, c) AVF_DEVICE_F_##b = (1 << a), 133 #define AVF_RX_VECTOR_SZ VLIB_FRAME_SIZE 209 if ((last == 0) && (first == 31))
212 value &= (1 << (first - last + 1)) - 1;
220 if ((last == 0) && (first == 63))
223 value &= (1 << (first - last + 1)) - 1;
242 return *(
volatile u32 *) (ad->
bar0 + addr);
249 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)
u32 per_interface_next_index
static void avf_set_u32(void *start, int offset, u32 value)
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
struct clib_bihash_value offset
template key/value backing page structure
enum @356 avf_process_event_t
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)