|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
36 s =
format (s,
"avf-%x/%x/%x/%x",
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)
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)
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);
vlib_pci_dev_handle_t pci_dev_handle
virtchnl_vlan_supported_caps_t insertion_support
static uword pow2_mask(uword x)
vlib_main_t vlib_node_runtime_t * node
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
#define foreach_virtchnl_eth_stats
@ VIRTCHNL_VLAN_UNSUPPORTED
__clib_export u8 * format_clib_error(u8 *s, va_list *va)
@ foreach_virtchnl_vlan_support_bit
virtchnl_vlan_supported_caps_t filtering_support
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
static vnet_hw_interface_t * vnet_get_hw_interface(vnet_main_t *vnm, u32 hw_if_index)
vnet_main_t * vnet_get_main(void)
@ foreach_avf_vf_cap_flag
#define AVF_RX_MAX_DESC_IN_CHAIN
virtchnl_link_speed_t link_speed
virtchnl_vlan_supported_caps_t stripping_support
format_function_t format_vlib_next_node_name
#define AVF_RXD_LEN_SHIFT
virtchnl_vlan_offload_caps_t offloads
#define vec_free(V)
Free vector's memory (no header).
@ foreach_virtchnl_link_speed
@ foreach_avf_device_flags
#define AVF_RXD_STATUS_EOP
static vlib_main_t * vlib_get_main(void)
virtchnl_vlan_filtering_caps_t filtering
vlib_pci_addr_t * vlib_pci_get_addr(vlib_main_t *vm, vlib_pci_dev_handle_t h)
#define AVF_RXD_PTYPE_SHIFT
#define AVF_RXD_ERROR_SHIFT
static_always_inline avf_device_t * avf_get_device(u32 dev_instance)
vl_api_wireguard_peer_flags_t flags