33 s =
format (s,
"avf-%x/%x/%x/%x",
34 addr->domain, addr->bus, addr->slot, addr->function);
44 #define _(a, b, c) if (ad->flags & (1 << a)) \ 45 t = format (t, "%s%s", t ? " ":"", c); 59 #define _(a, b, c) if (flags & (1 << a)) \ 60 t = format (t, "%s%s", t ? " ":"", c); 74 return format (s,
"unknown");
76 else if (speed == VIRTCHNL_LINK_SPEED_##b) \ 96 s =
format (s,
"\n%Unum-queue-pairs %d max-vectors %u max-mtu %u " 106 #define _(c) if (ad->eth_stats.c) \ 107 a = format (a, "\n%U%-20U %u", format_white_space, indent + 2, \ 108 format_c_identifier, #c, ad->eth_stats.c); 129 s =
format (s,
"avf: %v (%d) next-node %U",
132 s =
format (s,
"\n%Ustatus 0x%x error 0x%x ptype 0x%x length %u",
u8 * format_clib_error(u8 *s, va_list *va)
vnet_main_t * vnet_get_main(void)
#define foreach_virtchnl_eth_stats
virtchnl_link_speed_t link_speed
vlib_pci_addr_t * vlib_pci_get_addr(vlib_pci_dev_handle_t h)
static vnet_hw_interface_t * vnet_get_hw_interface(vnet_main_t *vnm, u32 hw_if_index)
#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 vec_free(V)
Free vector's memory (no header).