36 s =
format (s,
"avf-%x/%x/%x/%x",
37 addr->domain, addr->bus, addr->slot, addr->function);
47 #define _(a, b, c) if (ad->flags & (1 << a)) \ 48 t = format (t, "%s%s", t ? " ":"", c); 63 #define _(a, b, c) [a] = c, 68 for (
int i = 0;
i < 32;
i++)
70 if ((flags & (1 <<
i)) == 0)
75 s =
format (s,
"%s", strs[i]);
77 s =
format (s,
"unknown(%u)", i);
89 return format (s,
"unknown");
91 else if (speed == VIRTCHNL_LINK_SPEED_##b) \ 110 s =
format (s,
"\n%Utx: queues %u, desc %u (min %u max %u)",
118 s =
format (s,
"\n%Unum-queue-pairs %d max-vectors %u max-mtu %u " 128 #define _(c) if (ad->eth_stats.c - ad->last_cleared_eth_stats.c) \ 129 a = format (a, "\n%U%-20U %u", format_white_space, indent + 2, \ 130 format_c_identifier, #c, \ 131 ad->eth_stats.c - ad->last_cleared_eth_stats.c); 152 s =
format (s,
"avf: %v (%d) qid %u next-node %U flow-id %u", hi->
name,
158 s =
format (s,
"\n%Udesc %u: status 0x%x error 0x%x ptype 0x%x len %u",
178 #define _(a, b, c) [a] = c, 184 return format (s,
"unsupported");
186 for (
int i = 0;
i < 32;
i++)
188 if ((v & (1 <<
i)) == 0)
193 s =
format (s,
"%s", strs[i]);
195 s =
format (s,
"unknown(%u)", i);
220 s =
format (s,
"filtering:");
252 v = format (v, "\n%U", format_white_space, indent); \ 253 v = format (v, "%-20s = %lu", #st, es->st);
#define AVF_RXD_ERROR_SHIFT
vl_api_wireguard_peer_flags_t flags
virtchnl_vlan_supported_caps_t insertion_support
#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.
vnet_main_t * vnet_get_main(void)
format_function_t format_vlib_next_node_name
vlib_pci_dev_handle_t pci_dev_handle
virtchnl_vlan_supported_caps_t stripping_support
#define AVF_RXD_LEN_SHIFT
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
#define AVF_RXD_STATUS_EOP
sll srl srl sll sra u16x4 i
#define vec_free(V)
Free vector's memory (no header).
static_always_inline avf_device_t * avf_get_device(u32 dev_instance)
vlib_pci_addr_t * vlib_pci_get_addr(vlib_main_t *vm, vlib_pci_dev_handle_t h)
virtchnl_vlan_offload_caps_t offloads
#define AVF_RXD_PTYPE_SHIFT
virtchnl_vlan_supported_caps_t filtering_support
static vlib_main_t * vlib_get_main(void)
vlib_main_t vlib_node_runtime_t * node
virtchnl_vlan_filtering_caps_t filtering
#define AVF_RX_MAX_DESC_IN_CHAIN
__clib_export u8 * format_clib_error(u8 *s, va_list *va)