33 s =
format (s,
"vmxnet3-%x/%x/%x/%x",
34 addr->domain, addr->bus, addr->slot, addr->function);
44 #define _(a, b, c) if (vd->flags & (1 << a)) \ 45 t = format (t, "%s%s", t ? " ":"", c); 60 vmxnet3_queues *q = &vd->
dma->queues;
66 s =
format (s,
"\n%Urx queues %u, rx desc %u, tx queues %u, tx desc %u",
76 s =
format (s,
"\n%U TSO packets %llu",
78 s =
format (s,
"\n%U TSO bytes %llu",
80 s =
format (s,
"\n%U ucast packets %llu",
82 s =
format (s,
"\n%U ucast bytes %llu",
84 s =
format (s,
"\n%U mcast packets %llu",
86 s =
format (s,
"\n%U mcast bytes %llu",
88 s =
format (s,
"\n%U bcast packets %llu",
90 s =
format (s,
"\n%U bcast bytes %llu",
92 s =
format (s,
"\n%U Errors packets %llu",
94 s =
format (s,
"\n%U Discard packets %llu",
98 s =
format (s,
"\n%U LRO packets %llu",
100 s =
format (s,
"\n%U LRO bytes %llu",
102 s =
format (s,
"\n%U ucast packets %llu",
104 s =
format (s,
"\n%U ucast bytes %llu",
106 s =
format (s,
"\n%U mcast packets %llu",
108 s =
format (s,
"\n%U mcast bytes %llu",
110 s =
format (s,
"\n%U bcast packets %llu",
112 s =
format (s,
"\n%U bcast bytes %llu",
114 s =
format (s,
"\n%U No Bufs %llu",
116 s =
format (s,
"\n%U Error packets %llu",
130 s =
format (s,
"vmxnet3: %v (%d) next-node %U",
u8 * format_clib_error(u8 *s, va_list *va)
vnet_main_t * vnet_get_main(void)
format_function_t format_vlib_buffer
vlib_pci_dev_handle_t pci_dev_handle
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)
vmxnet3_main_t vmxnet3_main
static_always_inline void vmxnet3_reg_write(vmxnet3_device_t *vd, u8 bar, u32 addr, u32 val)
#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
#define vec_free(V)
Free vector's memory (no header).
vmxnet3_device_t * devices