37 s =
format (s,
"avf-%x/%x/%x/%x",
38 addr->domain, addr->bus, addr->slot, addr->function);
48 #define _(a, b, c) if (ad->flags & (1 << a)) \ 49 t = format (t, "%s%s", t ? " ":"", c); 63 #define _(a, b, c) if (flags & (1 << a)) \ 64 t = format (t, "%s%s", t ? " ":"", c); 78 return format (s,
"unknown");
80 else if (speed == VIRTCHNL_LINK_SPEED_##b) \ 100 s =
format (s,
"\n%Unum-queue-pairs %d max-vectors %u max-mtu %u " 110 #define _(c) if (ad->eth_stats.c - ad->last_cleared_eth_stats.c) \ 111 a = format (a, "\n%U%-20U %u", format_white_space, indent + 2, \ 112 format_c_identifier, #c, \ 113 ad->eth_stats.c - ad->last_cleared_eth_stats.c); 134 s =
format (s,
"avf: %v (%d) qid %u next-node %U",
140 s =
format (s,
"\n%Udesc %u: status 0x%x error 0x%x ptype 0x%x len %u",
u8 * format_clib_error(u8 *s, va_list *va)
#define AVF_RXD_ERROR_SHIFT
vnet_main_t * vnet_get_main(void)
#define foreach_virtchnl_eth_stats
virtchnl_link_speed_t link_speed
static vnet_hw_interface_t * vnet_get_hw_interface(vnet_main_t *vnm, u32 hw_if_index)
static uword pow2_mask(uword x)
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
format_function_t format_vlib_next_node_name
vlib_pci_dev_handle_t pci_dev_handle
#define AVF_RXD_LEN_SHIFT
#define AVF_RXD_STATUS_EOP
#define vec_free(V)
Free vector's memory (no header).
vlib_main_t vlib_node_runtime_t * node
vlib_pci_addr_t * vlib_pci_get_addr(vlib_main_t *vm, vlib_pci_dev_handle_t h)
#define AVF_RXD_PTYPE_SHIFT
static vlib_main_t * vlib_get_main(void)
#define AVF_RX_MAX_DESC_IN_CHAIN