|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
61 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__)
65 vl_print (handle, (char *)s); \
75 s =
format (0,
"SCRIPT: create_loopback ");
86 s =
format (0,
"SCRIPT: create_loopback ");
98 s =
format (0,
"SCRIPT: delete_loopback ");
108 s =
format (0,
"SCRIPT: sw_interface_set_flags ");
113 s =
format (s,
"admin-up ");
115 s =
format (s,
"admin-down ");
125 s =
format (0,
"SCRIPT: sw_interface_set_rx_placement ");
144 s =
format (0,
"SCRIPT: sw_interface_rx_placement_dump ");
156 s =
format (0,
"SCRIPT: sw_interface_event ");
161 s =
format (s,
"admin-up ");
163 s =
format (s,
"admin-down ");
166 s =
format (s,
"link-up");
168 s =
format (s,
"link-down");
171 s =
format (s,
" deleted");
182 s =
format (0,
"SCRIPT: sw_interface_add_del_address ");
188 s =
format (s,
"del-all ");
198 s =
format (0,
"SCRIPT: sw_interface_set_table ");
216 s =
format (0,
"SCRIPT: sw_interface_set_mpls_enable ");
221 s =
format (s,
"disable");
231 s =
format (0,
"SCRIPT: sw_interface_set_vpath ");
236 s =
format (s,
"enable ");
238 s =
format (s,
"disable ");
248 s =
format (0,
"SCRIPT: sw_interface_set_vxlan_bypass ");
256 s =
format (s,
"enable ");
258 s =
format (s,
"disable ");
268 s =
format (0,
"SCRIPT: sw_interface_set_l2_xconnect ");
277 s =
format (s,
"delete ");
287 s =
format (0,
"SCRIPT: sw_interface_set_l2_bridge ");
297 s =
format (s,
"uu-fwd ");
301 s =
format (s,
"disable ");
311 s =
format (0,
"SCRIPT: bridge_domain_add_del ");
334 s =
format (0,
"SCRIPT: bridge_domain_set_mac_age ");
349 s =
format (0,
"SCRIPT: bridge_domain_dump ");
362 s =
format (0,
"SCRIPT: l2fib_flush_all ");
374 s =
format (0,
"SCRIPT: l2fib_flush_bd ");
386 s =
format (0,
"SCRIPT: l2fib_flush_int ");
397 s =
format (0,
"SCRIPT: l2fib_add_del ");
408 s =
format (s,
"%s",
"static ");
410 s =
format (s,
"%s",
"filter ");
412 s =
format (s,
"%s",
"bvi ");
428 s =
format (0,
"SCRIPT: l2_flags ");
435 s =
format (s,
"forward ");
439 s =
format (s,
"uu-flood ");
441 s =
format (s,
"arp-term ");
455 s =
format (0,
"SCRIPT: bridge_flags ");
462 s =
format (s,
"forward ");
466 s =
format (s,
"uu-flood ");
468 s =
format (s,
"arp-term ");
481 s =
format (0,
"SCRIPT: bd_ip_mac_add_del ");
497 s =
format (0,
"SCRIPT: bd_ip_mac_flush ");
509 s =
format (0,
"SCRIPT: bd_ip_mac_dump ");
522 s =
format (0,
"SCRIPT: tap_create_v2 ");
525 s =
format (s,
"mac-address %U ",
528 s =
format (s,
"host-mac-addr %U ",
559 s =
format (s,
"gso-enabled ");
561 s =
format (s,
"csum-offload-enabled ");
563 s =
format (s,
"persist ");
565 s =
format (s,
"attach ");
569 s =
format (s,
"gro-coalesce-enabled ");
571 s =
format (s,
"packed ");
573 s =
format (s,
"in-order ");
582 s =
format (0,
"SCRIPT: tap_delete_v2 ");
593 s =
format (0,
"SCRIPT: sw_interface_tap_v2_dump ");
607 s =
format (0,
"SCRIPT: virtio_pci_create ");
610 s =
format (s,
"mac-address %U ",
613 s =
format (s,
"features 0x%llx ", clib_net_to_host_u64 (mp->
features));
615 s =
format (s,
"gso-enabled ");
617 s =
format (s,
"checksum_offload_enabled");
630 s =
format (0,
"SCRIPT: virtio_pci_create_v2 ");
633 s =
format (s,
"mac-address %U ",
636 s =
format (s,
"features 0x%llx ", clib_net_to_host_u64 (mp->
features));
638 s =
format (s,
"gso-enabled ");
640 s =
format (s,
"checksum_offload_enabled ");
642 s =
format (s,
"gro-coalesce-enabled ");
644 s =
format (s,
"packed ");
646 s =
format (s,
"in-order ");
648 s =
format (s,
"buffering ");
658 s =
format (0,
"SCRIPT: virtio_pci_delete ");
670 s =
format (0,
"SCRIPT: sw_interface_virtio_pci_dump ");
683 s =
format (0,
"SCRIPT: bond_create ");
685 s =
format (s,
"mac-address %U ",
692 s =
format (s,
"numa-only is set in lacp mode");
706 s =
format (0,
"SCRIPT: bond_create2 ");
708 s =
format (s,
"mac-address %U ",
715 s =
format (s,
"numa-only ");
728 s =
format (0,
"SCRIPT: bond_delete ");
739 s =
format (0,
"SCRIPT: bond_add_member ");
743 s =
format (s,
"passive ");
745 s =
format (s,
"long-timeout ");
755 s =
format (0,
"SCRIPT: sw_interface_set_bond_weight ");
767 s =
format (0,
"SCRIPT: bond_detach_member ");
778 s =
format (0,
"SCRIPT: sw_bond_interface_dump ");
790 s =
format (0,
"SCRIPT: sw_member_interface_dump ");
801 s =
format (0,
"SCRIPT: ip_route_add_del ");
807 for (p = 0; p < mp->
route.n_paths; p++)
818 s =
format (0,
"SCRIPT: mpls_route_add_del ");
831 s =
format (s,
"non-eos ");
834 s =
format (s,
"multicast ");
836 for (p = 0; p < mp->
mr_route.mr_n_paths; p++)
849 s =
format (0,
"SCRIPT: ip_table_add_del ");
854 if (mp->
table.is_ip6)
867 s =
format (0,
"SCRIPT: mpls_table_add_del ");
882 s =
format (0,
"SCRIPT: mpls_tunnel_add_del ");
891 s =
format (s,
"l2-only ");
893 s =
format (s,
"multicast ");
895 s =
format (s,
"tunnel-index ");
897 for (p = 0; p < mp->
mt_tunnel.mt_n_paths; p++)
909 s =
format (0,
"SCRIPT: sr_mpls_policy_add ");
934 s =
format (0,
"SCRIPT: sr_mpls_policy_del ");
946 s =
format (0,
"SCRIPT: sw_interface_set_unnumbered ");
963 s =
format (0,
"SCRIPT: create_vlan_subif ");
974 #define foreach_create_subif_flag \
979 _(4, "exact_match") \
980 _(5, "default_sub") \
981 _(6, "outer_vlan_id_any") \
982 _(7, "inner_vlan_id_any")
989 s =
format (0,
"SCRIPT: create_subif ");
1001 #define _(a,b) if (mp->sub_if_flags & (1 << a)) s = format (s, "%s ", b);
1013 s =
format (0,
"SCRIPT: delete_subif ");
1025 s =
format (0,
"SCRIPT: ip_table_replace_begin ");
1027 s =
format (s,
"v%s-table %d ",
1028 mp->
table.is_ip6 ?
"6" :
"4", (mp->
table.table_id));
1038 s =
format (0,
"SCRIPT: ip_table_flush ");
1040 s =
format (s,
"v%s-table %d ",
1041 mp->
table.is_ip6 ?
"6" :
"4", (mp->
table.table_id));
1052 s =
format (0,
"SCRIPT: ip_table_replace_end ");
1054 s =
format (s,
"v%s-table %d ",
1055 mp->
table.is_ip6 ?
"6" :
"4", (mp->
table.table_id));
1065 s =
format (0,
"SCRIPT: set_ip_flow_hash ");
1076 s =
format (s,
"sport ");
1079 s =
format (s,
"dport ");
1082 s =
format (s,
"proto ");
1085 s =
format (s,
"reverse ");
1099 s =
format (0,
"SCRIPT: l2_patch_add_del ");
1117 s =
format (0,
"SCRIPT: sr_localsid_add_del ");
1122 s =
format (s,
"Address: %U\nBehavior: End",
1124 s =
format (s, (mp->
end_psp ?
"End.PSP: True" :
"End.PSP: False"));
1129 "Address: %U\nBehavior: X (Endpoint with Layer-3 cross-connect)"
1134 s =
format (s, (mp->
end_psp ?
"End.PSP: True" :
"End.PSP: False"));
1139 "Address: %U\nBehavior: DX4 (Endpoint with decapsulation with IPv4 cross-connect)"
1148 "Address: %U\nBehavior: DX6 (Endpoint with decapsulation with IPv6 cross-connect)"
1157 "Address: %U\nBehavior: DX2 (Endpoint with decapulation and Layer-2 cross-connect)"
1165 "Address: %U\nBehavior: DT6 (Endpoint with decapsulation and specific IPv6 table lookup)"
1172 "Address: %U\nBehavior: DT4 (Endpoint with decapsulation and specific IPv4 table lookup)"
1179 s =
format (s,
"Address: %U\n Behavior: %u",
1185 s =
format (s,
"Internal error");
1196 s =
format (0,
"SCRIPT: sr_steering_add_del ");
1198 s =
format (s, (mp->
is_del ?
"Del: True" :
"Del: False"));
1212 (ip6_address_t *) mp->
prefix.address.un.ip6,
1234 ip6_address_t *segments = 0, *seg;
1235 ip6_address_t *this_address = (ip6_address_t *) mp->
sids.sids;
1241 clib_memcpy (seg->as_u8, this_address->as_u8, sizeof (*this_address));
1245 s =
format (0,
"SCRIPT: sr_policy_add ");
1252 (mp->
is_encap ?
"Behavior: Encapsulation" :
1253 "Behavior: SRH insertion"));
1257 s =
format (s, (mp->
is_spray ?
"Type: Default" :
"Type: Spray"));
1266 s =
format (s,
"\b\b } ");
1276 ip6_address_t *segments = 0, *seg;
1277 ip6_address_t *this_address = (ip6_address_t *) mp->
sids.sids;
1283 clib_memcpy (seg->as_u8, this_address->as_u8, sizeof (*this_address));
1287 s =
format (0,
"SCRIPT: sr_policy_mod ");
1305 s =
format (s,
"\b\b } ");
1315 s =
format (0,
"SCRIPT: sr_policy_del ");
1316 s =
format (s,
"To be delivered. Good luck.");
1326 s =
format (0,
"SCRIPT: classify_add_del_table ");
1344 s =
format (s,
"mask hex ");
1359 s =
format (0,
"SCRIPT: classify_add_del_session ");
1371 s =
format (s,
"match hex ");
1372 for (
i = 5 *
sizeof (
u32x4) - 1;
i > 0;
i--)
1381 for (
i = 0;
i < limit;
i++)
1392 s =
format (0,
"SCRIPT: classify_set_interface_ip_table ");
1408 s =
format (0,
"SCRIPT: classify_set_interface_l2_tables ");
1424 s =
format (0,
"SCRIPT: add_node_next ");
1435 s =
format (0,
"SCRIPT: vxlan_add_del_tunnel ");
1437 ip46_address_t
src =
1439 ip46_address_t
dst =
1443 char *dst_name = is_grp ?
"group" :
"dst";
1471 s =
format (0,
"SCRIPT: vxlan_offload_rx ");
1486 s =
format (0,
"SCRIPT: vxlan_tunnel_dump ");
1497 s =
format (0,
"SCRIPT: vxlan_gbp_tunnel_add_del ");
1507 s =
format (s,
"mcast_sw_if_index %d ", (mp->
tunnel.mcast_sw_if_index));
1508 s =
format (s,
"encap_table_id %d ", (mp->
tunnel.encap_table_id));
1510 s =
format (s,
"sw_if_index %d ", (mp->
tunnel.sw_if_index));
1520 s =
format (0,
"SCRIPT: vxlan_gbp_tunnel_dump ");
1532 s =
format (0,
"SCRIPT: sw_interface_set_vxlan_gbp_bypass ");
1535 s =
format (s,
"%s ", (mp->
is_ipv6 != 0) ?
"ipv6" :
"ipv4");
1536 s =
format (s,
"%s ", (mp->
enable != 0) ?
"enable" :
"disable");
1546 s =
format (0,
"SCRIPT: l2_fib_clear_table ");
1556 s =
format (0,
"SCRIPT: l2_interface_efp_filter ");
1560 s =
format (s,
"enable ");
1562 s =
format (s,
"disable ");
1572 s =
format (0,
"SCRIPT: l2_interface_vlan_tag_rewrite ");
1588 s =
format (0,
"SCRIPT: create_vhost_user_if ");
1592 s =
format (s,
"server ");
1596 s =
format (s,
"disable_mrg_rxbuf ");
1598 s =
format (s,
"disable_indirect_desc ");
1604 s =
format (s,
"packed");
1614 s =
format (0,
"SCRIPT: modify_vhost_user_if ");
1619 s =
format (s,
"server ");
1625 s =
format (s,
"packed");
1635 s =
format (0,
"SCRIPT: create_vhost_user_if_v2 ");
1639 s =
format (s,
"server ");
1643 s =
format (s,
"disable_mrg_rxbuf ");
1645 s =
format (s,
"disable_indirect_desc ");
1651 s =
format (s,
"event-idx ");
1653 s =
format (s,
"packed");
1663 s =
format (0,
"SCRIPT: modify_vhost_user_if_v2 ");
1668 s =
format (s,
"server ");
1674 s =
format (s,
"event-idx ");
1676 s =
format (s,
"packed");
1686 s =
format (0,
"SCRIPT: delete_vhost_user_if ");
1697 s =
format (0,
"SCRIPT: sw_interface_vhost_user_dump ");
1709 s =
format (0,
"SCRIPT: sw_interface_dump ");
1714 s =
format (s,
"name_filter %v ", v);
1728 s =
format (0,
"SCRIPT: l2_fib_table_dump ");
1740 s =
format (0,
"SCRIPT: control_ping ");
1750 s =
format (0,
"SCRIPT: want_interface_events pid %d enable %d ",
1761 s =
format (0,
"SCRIPT: cli ");
1774 s =
format (0,
"SCRIPT: exec %v ", cmd);
1785 s =
format (0,
"SCRIPT: memclnt_create name %s ", mp->
name);
1795 s =
format (0,
"SCRIPT: sockclnt_create name %s ", mp->
name);
1805 s =
format (0,
"SCRIPT: show_version ");
1816 s =
format (0,
"SCRIPT: show_threads ");
1826 s =
format (0,
"SCRIPT: vxlan_gpe_add_del_tunnel ");
1828 ip46_address_t local, remote;
1834 char *remote_name = is_grp ?
"group" :
"remote";
1863 s =
format (0,
"SCRIPT: vxlan_gpe_tunnel_dump ");
1875 s =
format (0,
"SCRIPT: interface_renumber ");
1889 s =
format (0,
"SCRIPT: want_l2_macs_events ");
1894 s =
format (s,
"disable");
1904 s =
format (0,
"SCRIPT: input_acl_set_interface ");
1922 s =
format (0,
"SCRIPT: output_acl_set_interface ");
1940 s =
format (0,
"SCRIPT: ip6_address_dump ");
1952 s =
format (0,
"SCRIPT: ip_dump ");
1963 s =
format (0,
"SCRIPT: af_packet_create ");
1966 s =
format (s,
"hw_addr random ");
1978 s =
format (0,
"SCRIPT: af_packet_delete ");
1989 s =
format (0,
"SCRIPT: af_packet_dump ");
2003 s =
format (s,
"transmit");
2006 s =
format (s,
"mark-and-transmit ");
2011 format (s, "%s", #f);
2024 s =
format (0,
"SCRIPT: policer_add_del ");
2034 s =
format (s,
"rate_type kbps ");
2037 s =
format (s,
"rate_type pps ");
2046 s =
format (s,
"round_type closest ");
2049 s =
format (s,
"round_type up ");
2052 s =
format (s,
"round_type down ");
2061 s =
format (s,
"type 1r2c ");
2064 s =
format (s,
"type 1r3c ");
2067 s =
format (s,
"type 2r3c-2698 ");
2070 s =
format (s,
"type 2r3c-4115 ");
2073 s =
format (s,
"type 2r3c-mef5cf1 ");
2087 s =
format (s,
"color-aware ");
2099 s =
format (0,
"SCRIPT: policer_dump ");
2111 s =
format (0,
"SCRIPT: policer_classify_set_interface ");
2130 s =
format (0,
"SCRIPT: policer_classify_dump ");
2134 s =
format (s,
"type ip4 ");
2137 s =
format (s,
"type ip6 ");
2140 s =
format (s,
"type l2 ");
2154 s =
format (0,
"SCRIPT: sw_interface_clear_stats ");
2166 s =
format (0,
"SCRIPT: mpls_tunnel_dump ");
2177 s =
format (0,
"SCRIPT: mpls_table_decap_dump ");
2187 s =
format (0,
"SCRIPT: mpls_route_decap_dump ");
2197 s =
format (0,
"SCRIPT: classify_table_ids ");
2207 s =
format (0,
"SCRIPT: classify_table_by_interface ");
2219 s =
format (0,
"SCRIPT: classify_table_info ");
2231 s =
format (0,
"SCRIPT: classify_session_dump ");
2243 s =
format (0,
"SCRIPT: set_ipfix_exporter ");
2263 s =
format (0,
"SCRIPT: ipfix_exporter_dump ");
2273 s =
format (0,
"SCRIPT: set_ipfix_classify_stream ");
2286 s =
format (0,
"SCRIPT: ipfix_classify_stream_dump ");
2296 s =
format (0,
"SCRIPT: ipfix_classify_table_add_del ");
2310 s =
format (0,
"SCRIPT: ipfix_classify_table_dump ");
2320 s =
format (0,
"SCRIPT: sw_interface_span_enable_disable ");
2330 s =
format (s,
"disable ");
2353 s =
format (0,
"SCRIPT: sw_interface_span_dump ");
2366 s =
format (0,
"SCRIPT: get_next_index ");
2378 s =
format (0,
"SCRIPT: pg_create_interface ");
2391 s =
format (0,
"SCRIPT: pg_capture ");
2394 if (mp->
count != ~0)
2397 s =
format (s,
"disable");
2407 s =
format (0,
"SCRIPT: pg_enable_disable ");
2413 s =
format (s,
"disable");
2423 s =
format (0,
"SCRIPT: pg_interface_enable_disable_coalesce ");
2426 s =
format (s,
"disable");
2428 s =
format (s,
"enable");
2439 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_add_del ");
2461 s =
format (0,
"SCRIPT: ip_source_and_port_range_check_interface_add_del ");
2528 vl_api_ipsec_spd_entry_t *ep;
2529 int policy_host_byte_order;
2531 ep = (vl_api_ipsec_spd_entry_t *) & mp->
entry;
2533 s =
format (0,
"SCRIPT: ipsec_spd_entry ");
2534 s =
format (s,
"is_add %d spd_id %u priority %d is_outbound %d sa_id %u\n",
2536 (ep->spd_id), ntohl (ep->priority), ep->is_outbound,
2539 policy_host_byte_order = (ep->policy);
2546 s =
format (s,
" policy: %s protocol %d\n", str, ep->protocol);
2548 s =
format (s,
" remote_address_start %U remote_address_stop %U\n",
2550 &ep->remote_address_start,
2553 s =
format (s,
" local_address_start %U local_address_stop %U\n",
2555 &ep->local_address_start,
2558 s =
format (s,
" remote_port_start %d remote_port_stop %d\n",
2559 (ep->remote_port_start),
ntohs (ep->remote_port_stop));
2561 s =
format (s,
" local_port_start %d local_port_stop %d ",
2562 (ep->local_port_start),
ntohs (ep->local_port_stop));
2572 s =
format (0,
"SCRIPT: ipsec_interface_add_del_spd ");
2573 s =
format (s,
"is_add %d sw_if_index %d spd_id %u ",
2583 s =
format (0,
"SCRIPT: ipsec_spd_add_del ");
2593 vl_api_ipsec_sad_entry_t *ep;
2594 const char *protocol_str, *algo_str, *integ_str;
2596 protocol_str =
"BOGUS protocol!";
2597 algo_str =
"BOGUS crypto_algorithm!";
2598 integ_str =
"BOGUS integrity_algorithm!";
2600 ep = (vl_api_ipsec_sad_entry_t *) & mp->
entry;
2602 s =
format (0,
"SCRIPT: ipsec_sad_entry_add_del is_add %d ", mp->
is_add);
2604 tmp = (ep->protocol);
2606 protocol_str =
"ESP";
2608 protocol_str =
"AH";
2610 tmp = (ep->crypto_algorithm);
2614 tmp = (ep->integrity_algorithm);
2618 s =
format (s,
"proto %s crypto alg %s integ alg %s\n",
2619 protocol_str, algo_str, integ_str);
2620 s =
format (s,
" crypto_key len %d value %U\n",
2622 (
int) (ep->crypto_key.length));
2623 s =
format (s,
" integ_key len %d value %U\n",
2625 ep->integrity_key.data, (
int) (ep->integrity_key.length));
2626 s =
format (s,
" flags 0x%x ", (ep->flags));
2628 s =
format (s,
"tunnel_src %U tunnel_dst %U\n",
2631 s =
format (s,
" tx_table_id %u salt %u ",
2632 (ep->tx_table_id), ntohl (ep->salt));
2643 s =
format (0,
"SCRIPT: l2_interface_pbb_tag_rewrite ");
2646 s =
format (s,
"vtr_op %d ", vtr_op);
2664 s =
format (0,
"SCRIPT: flow_classify_set_interface ");
2681 s =
format (0,
"SCRIPT: punt ");
2683 switch (mp->
punt.type)
2688 s =
format (s,
"protocol %d ", mp->
punt.punt.l4.protocol);
2690 if (mp->
punt.punt.l4.port != (
u16) ~ 0)
2691 s =
format (s,
"port %d ", (mp->
punt.punt.l4.port));
2709 s =
format (0,
"SCRIPT: flow_classify_dump ");
2713 s =
format (s,
"type ip4 ");
2716 s =
format (s,
"type ip6 ");
2730 s =
format (0,
"SCRIPT: get_first_msg_id %s ", mp->
name);
2740 s =
format (0,
"SCRIPT: ioam_enable ");
2743 s =
format (s,
"trace enabled");
2746 s =
format (s,
"POT enabled");
2749 s =
format (s,
"Seqno enabled");
2752 s =
format (s,
"Analyse enabled");
2762 s =
format (0,
"SCRIPT: ioam_disable ");
2763 s =
format (s,
"trace disabled");
2764 s =
format (s,
"POT disabled");
2765 s =
format (s,
"Seqno disabled");
2766 s =
format (s,
"Analyse disabled");
2776 s =
format (0,
"SCRIPT: feature_enable_disable ");
2781 s =
format (s,
"disable");
2791 s =
format (0,
"SCRIPT: feature_gso_enable_disable ");
2794 s =
format (s,
"enable");
2796 s =
format (s,
"disable");
2806 s =
format (0,
"SCRIPT: sw_interface_tag_add_del ");
2821 s =
format (0,
"SCRIPT: sw_interface_set_mtu ");
2833 s =
format (0,
"SCRIPT: p2p_ethernet_add ");
2845 s =
format (0,
"SCRIPT: p2p_ethernet_del ");
2857 s =
format (0,
"SCRIPT: tcp_configure_src_addresses ");
2858 s =
format (s,
"%U - %U ",
2873 s =
format (0,
"SCRIPT: app_namespace_add_del ");
2874 s =
format (s,
"ns-id %s secret %lu sw_if_index %d ipv4_fib_id %d "
2888 s =
format (0,
"SCRIPT: session_rule_add_del ");
2889 mp->
tag[
sizeof (mp->
tag) - 1] = 0;
2894 s =
format (s,
"appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
2900 s =
format (s,
"appns %d scope %d %s %U/%d %d %U/%d %d action %u tag %s",
2913 s =
format (0,
"SCRIPT: ip_container_proxy_add_del ");
2914 s =
format (s,
"is_add %d prefix %U sw_if_index %d",
2925 s =
format (0,
"SCRIPT: qos_record_enable_disable ");
2926 s =
format (s,
"sw_if_index %d ", (mp->
record.sw_if_index));
2928 mp->
record.input_source);
2931 s =
format (s,
"disable ");
2936 #define foreach_no_print_function \
2937 _(memclnt_keepalive_reply)
2940 static void * vl_api_ ## f ## _t_print \
2941 (vl_api_ ## f ## _t * mp, void * handle) \
2948 #define foreach_custom_print_function \
2949 _(CREATE_LOOPBACK, create_loopback) \
2950 _(CREATE_LOOPBACK_INSTANCE, create_loopback_instance) \
2951 _(SW_INTERFACE_SET_FLAGS, sw_interface_set_flags) \
2952 _(SW_INTERFACE_EVENT, sw_interface_event) \
2953 _(SW_INTERFACE_ADD_DEL_ADDRESS, sw_interface_add_del_address) \
2954 _(SW_INTERFACE_SET_TABLE, sw_interface_set_table) \
2955 _(SW_INTERFACE_SET_MPLS_ENABLE, sw_interface_set_mpls_enable) \
2956 _(SW_INTERFACE_SET_VPATH, sw_interface_set_vpath) \
2957 _(SW_INTERFACE_SET_VXLAN_BYPASS, sw_interface_set_vxlan_bypass) \
2958 _(BOND_CREATE, bond_create) \
2959 _(BOND_CREATE2, bond_create2) \
2960 _(BOND_DELETE, bond_delete) \
2961 _(BOND_ADD_MEMBER, bond_add_member) \
2962 _(BOND_DETACH_MEMBER, bond_detach_member) \
2963 _(SW_INTERFACE_SET_BOND_WEIGHT, sw_interface_set_bond_weight) \
2964 _(SW_MEMBER_INTERFACE_DUMP, sw_member_interface_dump) \
2965 _(SW_BOND_INTERFACE_DUMP, sw_bond_interface_dump) \
2966 _(SW_INTERFACE_RX_PLACEMENT_DUMP, sw_interface_rx_placement_dump) \
2967 _(TAP_CREATE_V2, tap_create_v2) \
2968 _(TAP_DELETE_V2, tap_delete_v2) \
2969 _(SW_INTERFACE_TAP_V2_DUMP, sw_interface_tap_v2_dump) \
2970 _(IP_TABLE_ADD_DEL, ip_table_add_del) \
2971 _(MPLS_ROUTE_ADD_DEL, mpls_route_add_del) \
2972 _(MPLS_TABLE_ADD_DEL, mpls_table_add_del) \
2973 _(IP_ROUTE_ADD_DEL, ip_route_add_del) \
2974 _(MPLS_TUNNEL_ADD_DEL, mpls_tunnel_add_del) \
2975 _(SR_MPLS_POLICY_ADD, sr_mpls_policy_add) \
2976 _(SR_MPLS_POLICY_DEL, sr_mpls_policy_del) \
2977 _(SW_INTERFACE_SET_UNNUMBERED, sw_interface_set_unnumbered) \
2978 _(CREATE_VLAN_SUBIF, create_vlan_subif) \
2979 _(CREATE_SUBIF, create_subif) \
2980 _(IP_TABLE_REPLACE_BEGIN, ip_table_replace_begin) \
2981 _(IP_TABLE_FLUSH, ip_table_flush) \
2982 _(IP_TABLE_REPLACE_END, ip_table_replace_end) \
2983 _(SET_IP_FLOW_HASH, set_ip_flow_hash) \
2984 _(L2_PATCH_ADD_DEL, l2_patch_add_del) \
2985 _(SR_LOCALSID_ADD_DEL, sr_localsid_add_del) \
2986 _(SR_STEERING_ADD_DEL, sr_steering_add_del) \
2987 _(SR_POLICY_ADD, sr_policy_add) \
2988 _(SR_POLICY_MOD, sr_policy_mod) \
2989 _(SR_POLICY_DEL, sr_policy_del) \
2990 _(SW_INTERFACE_SET_L2_XCONNECT, sw_interface_set_l2_xconnect) \
2991 _(L2FIB_ADD_DEL, l2fib_add_del) \
2992 _(L2FIB_FLUSH_ALL, l2fib_flush_all) \
2993 _(L2FIB_FLUSH_BD, l2fib_flush_bd) \
2994 _(L2FIB_FLUSH_INT, l2fib_flush_int) \
2995 _(L2_FLAGS, l2_flags) \
2996 _(BRIDGE_FLAGS, bridge_flags) \
2997 _(CLASSIFY_ADD_DEL_TABLE, classify_add_del_table) \
2998 _(CLASSIFY_ADD_DEL_SESSION, classify_add_del_session) \
2999 _(SW_INTERFACE_SET_L2_BRIDGE, sw_interface_set_l2_bridge) \
3000 _(BRIDGE_DOMAIN_ADD_DEL, bridge_domain_add_del) \
3001 _(BRIDGE_DOMAIN_DUMP, bridge_domain_dump) \
3002 _(BRIDGE_DOMAIN_SET_MAC_AGE, bridge_domain_set_mac_age) \
3003 _(CLASSIFY_SET_INTERFACE_IP_TABLE, classify_set_interface_ip_table) \
3004 _(CLASSIFY_SET_INTERFACE_L2_TABLES, classify_set_interface_l2_tables) \
3005 _(ADD_NODE_NEXT, add_node_next) \
3006 _(VXLAN_ADD_DEL_TUNNEL, vxlan_add_del_tunnel) \
3007 _(VXLAN_TUNNEL_DUMP, vxlan_tunnel_dump) \
3008 _(VXLAN_OFFLOAD_RX, vxlan_offload_rx) \
3009 _(L2_FIB_CLEAR_TABLE, l2_fib_clear_table) \
3010 _(L2_INTERFACE_EFP_FILTER, l2_interface_efp_filter) \
3011 _(L2_INTERFACE_VLAN_TAG_REWRITE, l2_interface_vlan_tag_rewrite) \
3012 _(CREATE_VHOST_USER_IF, create_vhost_user_if) \
3013 _(MODIFY_VHOST_USER_IF, modify_vhost_user_if) \
3014 _(CREATE_VHOST_USER_IF_V2, create_vhost_user_if_v2) \
3015 _(MODIFY_VHOST_USER_IF_V2, modify_vhost_user_if_v2) \
3016 _(DELETE_VHOST_USER_IF, delete_vhost_user_if) \
3017 _(SW_INTERFACE_DUMP, sw_interface_dump) \
3018 _(CONTROL_PING, control_ping) \
3019 _(WANT_INTERFACE_EVENTS, want_interface_events) \
3021 _(CLI_INBAND, cli_inband) \
3022 _(MEMCLNT_CREATE, memclnt_create) \
3023 _(SOCKCLNT_CREATE, sockclnt_create) \
3024 _(SW_INTERFACE_VHOST_USER_DUMP, sw_interface_vhost_user_dump) \
3025 _(SHOW_VERSION, show_version) \
3026 _(L2_FIB_TABLE_DUMP, l2_fib_table_dump) \
3027 _(VXLAN_GPE_ADD_DEL_TUNNEL, vxlan_gpe_add_del_tunnel) \
3028 _(VXLAN_GPE_TUNNEL_DUMP, vxlan_gpe_tunnel_dump) \
3029 _(VXLAN_GBP_TUNNEL_ADD_DEL, vxlan_gbp_tunnel_add_del) \
3030 _(VXLAN_GBP_TUNNEL_DUMP, vxlan_gbp_tunnel_dump) \
3031 _(SW_INTERFACE_SET_VXLAN_GBP_BYPASS, sw_interface_set_vxlan_gbp_bypass) \
3032 _(INTERFACE_NAME_RENUMBER, interface_name_renumber) \
3033 _(WANT_L2_MACS_EVENTS, want_l2_macs_events) \
3034 _(INPUT_ACL_SET_INTERFACE, input_acl_set_interface) \
3035 _(IP_ADDRESS_DUMP, ip_address_dump) \
3036 _(IP_DUMP, ip_dump) \
3037 _(DELETE_LOOPBACK, delete_loopback) \
3038 _(BD_IP_MAC_ADD_DEL, bd_ip_mac_add_del) \
3039 _(BD_IP_MAC_FLUSH, bd_ip_mac_flush) \
3040 _(AF_PACKET_CREATE, af_packet_create) \
3041 _(AF_PACKET_DELETE, af_packet_delete) \
3042 _(AF_PACKET_DUMP, af_packet_dump) \
3043 _(SW_INTERFACE_CLEAR_STATS, sw_interface_clear_stats) \
3044 _(MPLS_TABLE_DUMP, mpls_table_dump) \
3045 _(MPLS_ROUTE_DUMP, mpls_route_dump) \
3046 _(MPLS_TUNNEL_DUMP, mpls_tunnel_dump) \
3047 _(CLASSIFY_TABLE_IDS,classify_table_ids) \
3048 _(CLASSIFY_TABLE_BY_INTERFACE, classify_table_by_interface) \
3049 _(CLASSIFY_TABLE_INFO,classify_table_info) \
3050 _(CLASSIFY_SESSION_DUMP,classify_session_dump) \
3051 _(SET_IPFIX_EXPORTER, set_ipfix_exporter) \
3052 _(IPFIX_EXPORTER_DUMP, ipfix_exporter_dump) \
3053 _(SET_IPFIX_CLASSIFY_STREAM, set_ipfix_classify_stream) \
3054 _(IPFIX_CLASSIFY_STREAM_DUMP, ipfix_classify_stream_dump) \
3055 _(IPFIX_CLASSIFY_TABLE_ADD_DEL, ipfix_classify_table_add_del) \
3056 _(IPFIX_CLASSIFY_TABLE_DUMP, ipfix_classify_table_dump) \
3057 _(SW_INTERFACE_SPAN_ENABLE_DISABLE, sw_interface_span_enable_disable) \
3058 _(SW_INTERFACE_SPAN_DUMP, sw_interface_span_dump) \
3059 _(GET_NEXT_INDEX, get_next_index) \
3060 _(PG_CREATE_INTERFACE,pg_create_interface) \
3061 _(PG_CAPTURE, pg_capture) \
3062 _(PG_ENABLE_DISABLE, pg_enable_disable) \
3063 _(PG_INTERFACE_ENABLE_DISABLE_COALESCE, pg_interface_enable_disable_coalesce) \
3064 _(POLICER_ADD_DEL, policer_add_del) \
3065 _(POLICER_DUMP, policer_dump) \
3066 _(POLICER_CLASSIFY_SET_INTERFACE, policer_classify_set_interface) \
3067 _(POLICER_CLASSIFY_DUMP, policer_classify_dump) \
3068 _(IP_SOURCE_AND_PORT_RANGE_CHECK_ADD_DEL, \
3069 ip_source_and_port_range_check_add_del) \
3070 _(IP_SOURCE_AND_PORT_RANGE_CHECK_INTERFACE_ADD_DEL, \
3071 ip_source_and_port_range_check_interface_add_del) \
3072 _(IPSEC_INTERFACE_ADD_DEL_SPD, ipsec_interface_add_del_spd) \
3073 _(IPSEC_SAD_ENTRY_ADD_DEL, ipsec_sad_entry_add_del) \
3074 _(IPSEC_SPD_ADD_DEL, ipsec_spd_add_del) \
3075 _(IPSEC_SPD_ENTRY_ADD_DEL, ipsec_spd_entry_add_del) \
3076 _(DELETE_SUBIF, delete_subif) \
3077 _(L2_INTERFACE_PBB_TAG_REWRITE, l2_interface_pbb_tag_rewrite) \
3078 _(SET_PUNT, set_punt) \
3079 _(FLOW_CLASSIFY_SET_INTERFACE, flow_classify_set_interface) \
3080 _(FLOW_CLASSIFY_DUMP, flow_classify_dump) \
3081 _(GET_FIRST_MSG_ID, get_first_msg_id) \
3082 _(IOAM_ENABLE, ioam_enable) \
3083 _(IOAM_DISABLE, ioam_disable) \
3084 _(FEATURE_ENABLE_DISABLE, feature_enable_disable) \
3085 _(FEATURE_GSO_ENABLE_DISABLE, feature_gso_enable_disable) \
3086 _(SW_INTERFACE_TAG_ADD_DEL, sw_interface_tag_add_del) \
3087 _(HW_INTERFACE_SET_MTU, hw_interface_set_mtu) \
3088 _(P2P_ETHERNET_ADD, p2p_ethernet_add) \
3089 _(P2P_ETHERNET_DEL, p2p_ethernet_del) \
3090 _(TCP_CONFIGURE_SRC_ADDRESSES, tcp_configure_src_addresses) \
3091 _(APP_NAMESPACE_ADD_DEL, app_namespace_add_del) \
3092 _(SESSION_RULE_ADD_DEL, session_rule_add_del) \
3093 _(OUTPUT_ACL_SET_INTERFACE, output_acl_set_interface) \
3094 _(QOS_RECORD_ENABLE_DISABLE, qos_record_enable_disable) \
3095 _(MEMCLNT_KEEPALIVE_REPLY, memclnt_keepalive_reply)
3100 #define _(n,f) am->msg_print_handlers[VL_API_##n] \
3101 = (void *) vl_api_##f##_t_print;
static void * vl_api_cli_t_print(vl_api_cli_t *mp, void *handle)
u32 id[default=0xffffffff]
static void * vl_api_sw_interface_span_dump_t_print(vl_api_sw_interface_span_dump_t *mp, void *handle)
Delete a point-to-point (p2p) Ethernet sub-interface.
static void * vl_api_set_ipfix_classify_stream_t_print(vl_api_set_ipfix_classify_stream_t *mp, void *handle)
vl_api_interface_index_t tx_sw_if_index
MPLS Route Add / del route.
vl_api_interface_index_t sw_if_index
static void * vl_api_want_l2_macs_events_t_print(vl_api_want_l2_macs_events_t *mp, void *handle)
static __clib_unused void * vl_api_bd_ip_mac_dump_t_print(vl_api_bd_ip_mac_dump_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
Interface set vxlan-bypass request.
static void * vl_api_sw_interface_set_unnumbered_t_print(vl_api_sw_interface_set_unnumbered_t *mp, void *handle)
IPFIX classify stream dump request.
show_threads display the information about vpp threads running on system along with their process id,...
static void * vl_api_classify_add_del_session_t_print(vl_api_classify_add_del_session_t *mp, void *handle)
static void * vl_api_ip_route_add_del_t_print(vl_api_ip_route_add_del_t *mp, void *handle)
vl_api_sr_steer_t traffic_type
u8 * format_vl_api_address_family(u8 *s, va_list *args)
static void * vl_api_create_subif_t_print(vl_api_create_subif_t *mp, void *handle)
Classify table ids by interface index request.
bool is_add[default=true]
vl_api_interface_index_t sw_if_index
vhost-user interface create request
bool is_add[default=true]
vl_api_address_family_t ip_version
L2 interface vlan tag rewrite configure request.
static void * vl_api_af_packet_delete_t_print(vl_api_af_packet_delete_t *mp, void *handle)
dump the rx queue placement of interface(s)
vl_api_interface_index_t sw_if_index[default=0xffffffff]
L2 fib clear table request, clear all mac entries in the l2 fib.
bool is_enabled[default=true]
bool is_add[default=true]
Classify get table IDs request.
@ QOS_POLICER_TYPE_2R3C_RFC_4115
static void * vl_api_sr_policy_del_t_print(vl_api_sr_policy_del_t *mp, void *handle)
vl_api_vxlan_gbp_tunnel_t tunnel
static void * vl_api_sw_interface_event_t_print(vl_api_sw_interface_event_t *mp, void *handle)
i16 current_data_offset[default=0]
Set/unset policer classify interface.
@ BRIDGE_API_FLAG_UU_FLOOD
vl_api_mac_address_t mac_address
static void * vl_api_classify_table_by_interface_t_print(vl_api_classify_table_by_interface_t *mp, void *handle)
u32 next_table_index[default=0xffffffff]
#define clib_memcpy(d, s, n)
IPv6 SR policy modification.
@ QOS_POLICER_TYPE_2R3C_RFC_2698
vl_api_interface_index_t sw_if_index_from
vl_api_if_status_flags_t flags
static void * vl_api_show_version_t_print(vl_api_show_version_t *mp, void *handle)
static void * vl_api_ipsec_sad_entry_add_del_t_print(vl_api_ipsec_sad_entry_add_del_t *mp, void *handle)
vl_api_interface_index_t sw_if_index[default=0xffffffff]
vl_api_address_t src_address
vl_api_mac_address_t mac_address
IPsec: Add/delete Security Association Database entry.
@ IF_STATUS_API_FLAG_LINK_UP
vl_api_interface_index_t parent_if_index
static void * vl_api_sr_policy_mod_t_print(vl_api_sr_policy_mod_t *mp, void *handle)
static void * vl_api_create_loopback_t_print(vl_api_create_loopback_t *mp, void *handle)
static uword ip46_address_is_multicast(const ip46_address_t *a)
IPFIX add or delete classifier table request.
vl_api_interface_index_t rx_sw_if_index
static void * vl_api_tap_create_v2_t_print(vl_api_tap_create_v2_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index[default=0xffffffff]
Register for interface events.
vl_api_pci_address_t pci_addr
u8 * format_vl_api_prefix(u8 *s, va_list *args)
static void * vl_api_policer_add_del_t_print(vl_api_policer_add_del_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
u8 * format_ethernet_address(u8 *s, va_list *args)
bool enable_disable[default=true]
vl_api_interface_index_t parent_if_index
vl_api_interface_index_t sw_if_index
@ VIRTIO_API_FLAG_CSUM_OFFLOAD
static void * vl_api_pg_enable_disable_t_print(vl_api_pg_enable_disable_t *mp, void *handle)
vl_api_span_state_t state
vl_api_interface_index_t sw_if_index
vl_api_ip_proto_t protocol
Flush bridge domain IP to MAC entries.
vl_api_sse2_qos_action_t violate_action
Initialize a new bond interface with the given paramters.
static void * vl_api_sw_interface_set_l2_bridge_t_print(vl_api_sw_interface_set_l2_bridge_t *mp, void *handle)
Add/Delete classification table request.
void vl_msg_api_custom_dump_configure(api_main_t *am)
u32 skip_n_vectors[default=0]
static void * vl_api_modify_vhost_user_if_t_print(vl_api_modify_vhost_user_if_t *mp, void *handle)
#define foreach_no_print_function
vl_api_interface_index_t sw_if_index
bool is_add[default=true]
vl_api_interface_index_t mcast_sw_if_index
Segment Routing MPLS data structures definitions.
vl_api_interface_index_t sw_if_index
bool enable[default=0xffffffff]
Create or delete a VXLAN-GBP tunnel.
vl_api_interface_index_t sw_if_index
Query relative index via node names.
vl_api_mac_address_t b_smac
vl_api_sse2_qos_policer_type_t type
u32 id[default=0xFFFFFFFF]
static void * vl_api_mpls_table_dump_t_print(vl_api_mpls_table_dump_t *mp, void *handle)
Classify add / del session request.
vl_api_mpls_table_t mt_table
vl_api_interface_index_t sw_if_index
u16 fp_len
The mask length.
Interface set vpath request.
vl_api_mac_address_t mac_address
@ QOS_POLICER_TYPE_1R3C_RFC_2697
bool is_add[default=true]
static void * vl_api_ioam_disable_t_print(vl_api_ioam_disable_t *mp, void *handle)
L2 bridge domain add or delete request.
Dump tap interfaces request.
Set the ip flow hash config for a fib request.
static void * vl_api_l2_interface_efp_filter_t_print(vl_api_l2_interface_efp_filter_t *mp, void *handle)
Set interface physical MTU.
static void * vl_api_l2_interface_pbb_tag_rewrite_t_print(vl_api_l2_interface_pbb_tag_rewrite_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
static void * vl_api_bd_ip_mac_add_del_t_print(vl_api_bd_ip_mac_add_del_t *mp, void *handle)
bool enable[default=true]
vl_api_interface_index_t sw_if_index
vhost-user interface modify request
static void * vl_api_ip_source_and_port_range_check_interface_add_del_t_print(vl_api_ip_source_and_port_range_check_interface_add_del_t *mp, void *handle)
static void * vl_api_pg_capture_t_print(vl_api_pg_capture_t *mp, void *handle)
static void * vl_api_set_punt_t_print(vl_api_set_punt_t *mp, void *handle)
Get list of policer classify interfaces and tables.
static void * vl_api_delete_vhost_user_if_t_print(vl_api_delete_vhost_user_if_t *mp, void *handle)
static void * vl_api_sw_interface_tap_v2_dump_t_print(vl_api_sw_interface_tap_v2_dump_t *mp, void *handle)
vl_api_pci_address_t pci_addr
static void * vl_api_hw_interface_set_mtu_t_print(vl_api_hw_interface_set_mtu_t *mp, void *handle)
u8 * format_vl_api_fib_path(u8 *s, va_list *args)
vl_api_ip6_address_t bsid_addr
vl_api_mac_address_t b_dmac
IPsec: Add/delete Security Policy Database.
bool enable[default=true]
static void * vl_api_tcp_configure_src_addresses_t_print(vl_api_tcp_configure_src_addresses_t *mp, void *handle)
static void * vl_api_ip_table_replace_end_t_print(vl_api_ip_table_replace_end_t *mp, void *handle)
#define foreach_custom_print_function
bool enable[default=true]
Set/unset flow classify interface.
static void * vl_api_sw_interface_span_enable_disable_t_print(vl_api_sw_interface_span_enable_disable_t *mp, void *handle)
u32 bd_id[default=0xffffffff]
vl_api_mac_address_t remote_mac
vl_api_interface_index_t sw_if_index
vl_api_sr_behavior_t behavior
IPsec: Add/delete Security Policy Database entry.
static void * vl_api_ipfix_classify_table_add_del_t_print(vl_api_ipfix_classify_table_add_del_t *mp, void *handle)
bool mt_is_add[default=true]
u32 memory_size[default=2097152]
Set the next node for a given node request.
static void * vl_api_ipsec_interface_add_del_spd_t_print(vl_api_ipsec_interface_add_del_spd_t *mp, void *handle)
static void * vl_api_mpls_table_add_del_t_print(vl_api_mpls_table_add_del_t *mp, void *handle)
vl_api_mac_address_t remote_mac
static void * vl_api_bridge_domain_set_mac_age_t_print(vl_api_bridge_domain_set_mac_age_t *mp, void *handle)
@ FLOW_CLASSIFY_API_TABLE_IP6
L2 FIB flush interface entries.
vl_api_interface_index_t sw_if_index[default=0xffffffff]
Enable / disable packet generator request.
static void * vl_api_ipfix_exporter_dump_t_print(vl_api_ipfix_exporter_dump_t *mp, void *handle)
u32 table_index[default=0xffffffff]
ip46_type_t ip_address_decode(const vl_api_address_t *in, ip46_address_t *out)
Decode/Encode for struct/union types.
vl_api_mac_address_t hw_addr
static void * vl_api_classify_table_ids_t_print(vl_api_classify_table_ids_t *mp, void *handle)
Dump bond interfaces request.
Enable or Disable MPLS on and interface.
vl_api_tap_flags_t tap_flags
u8 max_macs_in_event[default=10]
PacketGenerator interface enable/disable packet coalesce.
vhost-user interface modify request
static void * vl_api_vxlan_add_del_tunnel_t_print(vl_api_vxlan_add_del_tunnel_t *mp, void *handle)
static void * vl_api_create_loopback_instance_t_print(vl_api_create_loopback_instance_t *mp, void *handle)
static void * vl_api_classify_table_info_t_print(vl_api_classify_table_info_t *mp, void *handle)
u32 match_n_vectors[default=1]
Segment Routing data structures definitions.
Request all or filtered subset of sw_interface_details.
vl_api_interface_index_t sw_if_index
#define foreach_create_subif_flag
vl_api_sse2_qos_action_t conform_action
static void * vl_api_sw_bond_interface_dump_t_print(vl_api_sw_bond_interface_dump_t *mp, void *handle)
Set or delete one or all ip addresses on a specified interface.
u32 opaque_index[default=0xffffffff]
vl_api_ip6_address_with_prefix_t host_ip6_prefix
u8 current_data_flag[default=0]
Configure IP source and L4 port-range check.
Offload vxlan rx request.
@ VIRTIO_API_FLAG_GRO_COALESCE
@ POLICER_CLASSIFY_API_TABLE_L2
vl_api_interface_index_t mcast_sw_if_index
Clear interface statistics.
IPsec: Add/delete SPD from interface.
Create loopback interface instance request.
Initialize a new virtio pci interface with the given parameters.
static void * vl_api_classify_session_dump_t_print(vl_api_classify_session_dump_t *mp, void *handle)
static void * vl_api_ip_table_flush_t_print(vl_api_ip_table_flush_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
bool is_del[default=false]
Dump virtio pci interfaces request.
static void * vl_api_sw_interface_set_mpls_enable_t_print(vl_api_sw_interface_set_mpls_enable_t *mp, void *handle)
static void * vl_api_sw_interface_set_vxlan_bypass_t_print(vl_api_sw_interface_set_vxlan_bypass_t *mp, void *handle)
u8 * format_qos_source(u8 *s, va_list *args)
format/unformat QoS source types
static void * vl_api_get_first_msg_id_t_print(vl_api_get_first_msg_id_t *mp, void *handle)
vl_api_ip6_address_t bsid_addr
#define vec_add2(V, P, N)
Add N elements to end of vector V, return pointer to new elements in P.
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
static void * vl_api_sw_interface_add_del_address_t_print(vl_api_sw_interface_add_del_address_t *mp, void *handle)
static void * vl_api_l2_patch_add_del_t_print(vl_api_l2_patch_add_del_t *mp, void *handle)
bool is_enabled[default=true]
vnet_main_t * vnet_get_main(void)
@ IF_STATUS_API_FLAG_ADMIN_UP
u16 rx_ring_sz[default=256]
static void * vl_api_classify_set_interface_ip_table_t_print(vl_api_classify_set_interface_ip_table_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
Delete sub interface request.
Set an interface's rx-placement Rx-Queue placement on specific thread is operational for only hardwar...
static void * vl_api_mpls_tunnel_dump_t_print(vl_api_mpls_tunnel_dump_t *mp, void *handle)
vl_api_interface_index_t interface_id
@ VIRTIO_API_FLAG_IN_ORDER
static void * vl_api_l2_fib_table_dump_t_print(vl_api_l2_fib_table_dump_t *mp, void *handle)
u8 * format_vl_api_address(u8 *s, va_list *args)
Get list of flow classify interfaces and tables.
static void * vl_api_policer_classify_set_interface_t_print(vl_api_policer_classify_set_interface_t *mp, void *handle)
static void * vl_api_vxlan_tunnel_dump_t_print(vl_api_vxlan_tunnel_dump_t *mp, void *handle)
@ POLICER_CLASSIFY_API_TABLE_IP6
vl_api_interface_index_t interface_id
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
static void * vl_api_sw_interface_vhost_user_dump_t_print(vl_api_sw_interface_vhost_user_dump_t *mp, void *handle)
IPFIX classify tables dump request.
vl_api_interface_index_t rx_sw_if_index
vl_api_interface_index_t sw_if_index
static void * vl_api_sw_interface_tag_add_del_t_print(vl_api_sw_interface_tag_add_del_t *mp, void *handle)
vl_api_classify_action_t action[default=0]
void ip_prefix_decode(const vl_api_prefix_t *in, fib_prefix_t *out)
static void * vl_api_vxlan_gbp_tunnel_add_del_t_print(vl_api_vxlan_gbp_tunnel_add_del_t *mp, void *handle)
Create loopback interface request.
PacketGenerator capture packets on given interface request.
L2 bridge domain set mac age.
string host_namespace[64]
static void * vl_api_classify_set_interface_l2_tables_t_print(vl_api_classify_set_interface_l2_tables_t *mp, void *handle)
@ QOS_ACTION_MARK_AND_TRANSMIT
static void * vl_api_ipfix_classify_table_dump_t_print(vl_api_ipfix_classify_table_dump_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
static void * vl_api_add_node_next_t_print(vl_api_add_node_next_t *mp, void *handle)
bool is_add[default=true]
vl_api_address_t src_address
static void * vl_api_l2_fib_clear_table_t_print(vl_api_l2_fib_clear_table_t *mp, void *handle)
Classify sessions dump request.
static void * vl_api_vxlan_offload_rx_t_print(vl_api_vxlan_offload_rx_t *mp, void *handle)
static void * vl_api_sr_steering_add_del_t_print(vl_api_sr_steering_add_del_t *mp, void *handle)
vl_api_ip_proto_t transport_protocol
vl_api_sse2_qos_rate_type_t rate_type
vl_api_interface_index_t sw_if_index[default=0xffffffff]
sll srl srl sll sra u16x4 i
static void * vl_api_app_namespace_add_del_t_print(vl_api_app_namespace_add_del_t *mp, void *handle)
PacketGenerator create interface request.
Delete virtio pci interface.
static void * vl_api_sw_member_interface_dump_t_print(vl_api_sw_member_interface_dump_t *mp, void *handle)
bool enable[default=true]
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
static void * vl_api_sw_interface_dump_t_print(vl_api_sw_interface_dump_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
static void * vl_api_l2_interface_vlan_tag_rewrite_t_print(vl_api_l2_interface_vlan_tag_rewrite_t *mp, void *handle)
Set unnumbered interface add / del request.
static void * vl_api_ipsec_spd_add_del_t_print(vl_api_ipsec_spd_add_del_t *mp, void *handle)
IPFIX classify stream configure request.
vl_api_interface_index_t tx_sw_if_index
static void * vl_api_bond_add_member_t_print(vl_api_bond_add_member_t *mp, void *handle)
static void * vl_api_bond_detach_member_t_print(vl_api_bond_detach_member_t *mp, void *handle)
static void * vl_api_mpls_route_dump_t_print(vl_api_mpls_route_dump_t *mp, void *handle)
Enable/Disable QoS recording The QoS bits from the packet at the specified input layer are copied int...
Dump l2 fib (aka bridge domain) table.
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t hw_if_index
vl_api_interface_index_t sw_if_index
Set / clear software interface tag.
static void * vl_api_ioam_enable_t_print(vl_api_ioam_enable_t *mp, void *handle)
Set flags on the interface.
@ FLOW_CLASSIFY_API_TABLE_IP4
static __clib_unused void * vl_api_virtio_pci_create_v2_t_print(vl_api_virtio_pci_create_v2_t *mp, void *handle)
L2 FIB flush bridge domain entries.
@ POLICER_CLASSIFY_API_TABLE_IP4
static void * vl_api_modify_vhost_user_if_v2_t_print(vl_api_modify_vhost_user_if_v2_t *mp, void *handle)
static void * vl_api_create_vhost_user_if_t_print(vl_api_create_vhost_user_if_t *mp, void *handle)
bool disable_indirect_desc
Set interface L2 flags (such as L2_LEARN, L2_FWD, L2_FLOOD, L2_UU_FLOOD, or L2_ARP_TERM bits).
static void * vl_api_output_acl_set_interface_t_print(vl_api_output_acl_set_interface_t *mp, void *handle)
L2 interface ethernet flow point filtering enable/disable request.
vl_api_interface_index_t bond_sw_if_index
vl_api_interface_index_t sw_if_index
ip46_address_t fp_addr
The address type is not deriveable from the fp_addr member.
vl_api_policer_classify_table_t type
u32 vl_api_string_len(vl_api_string_t *astr)
u8 * vl_api_format_string(u8 *s, va_list *args)
static void * vl_api_delete_subif_t_print(vl_api_delete_subif_t *mp, void *handle)
static void * vl_api_feature_enable_disable_t_print(vl_api_feature_enable_disable_t *mp, void *handle)
string sock_filename[256]
vl_api_interface_index_t sw_if_index
static void * vl_api_delete_loopback_t_print(vl_api_delete_loopback_t *mp, void *handle)
static void * vl_api_input_acl_set_interface_t_print(vl_api_input_acl_set_interface_t *mp, void *handle)
bool enable[default=true]
Create or delete a VXLAN tunnel.
API main structure, used by both vpp and binary API clients.
vl_api_interface_index_t sw_if_index
Interface set vxlan-bypass request.
static void * vl_api_create_vlan_subif_t_print(vl_api_create_vlan_subif_t *mp, void *handle)
vl_api_ip6_address_t localsid
u8 * format_vl_api_mac_address(u8 *s, va_list *args)
Set/unset l2 classification tables for an interface request.
Delete loopback interface request.
bool enable_disable[default=true]
L2 FIB add entry request.
static void * vl_api_sr_mpls_policy_del_t_print(vl_api_sr_mpls_policy_del_t *mp, void *handle)
bool enable[default=true]
vl_api_interface_index_t sw_if_index
IOAM enable : Enable in-band OAM.
vl_api_mac_address_t mac_address
vl_api_ip6_address_t bsid_addr
static void * vl_api_bridge_domain_dump_t_print(vl_api_bridge_domain_dump_t *mp, void *handle)
#define vec_free(V)
Free vector's memory (no header).
static void * vl_api_bond_create_t_print(vl_api_bond_create_t *mp, void *handle)
static void * vl_api_sw_interface_clear_stats_t_print(vl_api_sw_interface_clear_stats_t *mp, void *handle)
static void * vl_api_cli_inband_t_print(vl_api_cli_inband_t *mp, void *handle)
u16 tx_ring_sz[default=256]
vl_api_interface_index_t sw_if_index
static void * vl_api_ipfix_classify_stream_dump_t_print(vl_api_ipfix_classify_stream_dump_t *mp, void *handle)
vl_api_sse2_qos_round_type_t round_type
static void * vl_api_sw_interface_set_flags_t_print(vl_api_sw_interface_set_flags_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
u32 hit_next_index[default=0xffffffff]
static __clib_unused void * vl_api_virtio_pci_create_t_print(vl_api_virtio_pci_create_t *mp, void *handle)
static void * vl_api_sr_mpls_policy_add_t_print(vl_api_sr_mpls_policy_add_t *mp, void *handle)
Dump mpls eth tunnel table.
Control ping from client to api server request.
static void * vl_api_bridge_domain_add_del_t_print(vl_api_bridge_domain_add_del_t *mp, void *handle)
format_function_t format_vlib_pci_addr
static void * vl_api_interface_name_renumber_t_print(vl_api_interface_name_renumber_t *mp, void *handle)
u8 scan_delay[default=10]
static void * vl_api_flow_classify_set_interface_t_print(vl_api_flow_classify_set_interface_t *mp, void *handle)
string sock_filename[256]
format_function_t format_vnet_sw_if_index_name
Process a vpe parser cli string request.
description fragment has unexpected format
vl_api_interface_index_t sw_if_index_to
static void * vl_api_bd_ip_mac_flush_t_print(vl_api_bd_ip_mac_flush_t *mp, void *handle)
static __clib_unused void * vl_api_show_threads_t_print(vl_api_show_threads_t *mp, void *handle)
format_function_t format_ip46_address
Enable or disable interface feature gso arc.
string sock_filename[256]
bool is_add[default=true]
static void * vl_api_qos_record_enable_disable_t_print(vl_api_qos_record_enable_disable_t *mp, void *handle)
bool is_add[default=true]
static void * vl_api_policer_dump_t_print(vl_api_policer_dump_t *mp, void *handle)
vl_api_ipsec_spd_entry_t entry
static __clib_unused void * vl_api_virtio_pci_delete_t_print(vl_api_virtio_pci_delete_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
vl_api_sse2_qos_action_t exceed_action
Feature path enable/disable request.
static void * vl_api_l2_flags_t_print(vl_api_l2_flags_t *mp, void *handle)
string sock_filename[256]
vl_api_address_t dst_address
static void * vl_api_l2fib_flush_bd_t_print(vl_api_l2fib_flush_bd_t *mp, void *handle)
bool is_add[default=true]
Interface bridge mode request.
static void * vl_api_sockclnt_create_t_print(vl_api_sockclnt_create_t *mp, void *handle)
vl_api_mpls_route_t mr_route
vl_api_interface_index_t rx_sw_if_index
static const char * policy_strs[]
static void * vl_api_sr_policy_add_t_print(vl_api_sr_policy_add_t *mp, void *handle)
@ TAP_API_FLAG_GRO_COALESCE
Interface Event generated by want_interface_events.
static void * vl_api_vxlan_gbp_tunnel_dump_t_print(vl_api_vxlan_gbp_tunnel_dump_t *mp, void *handle)
bool enable[default=true]
@ BRIDGE_API_FLAG_ARP_TERM
L2 interface pbb tag rewrite configure request.
#define vec_foreach(var, vec)
Vector iterator.
static void * vl_api_p2p_ethernet_del_t_print(vl_api_p2p_ethernet_del_t *mp, void *handle)
u32 id[default=0xFFFFFFFF]
static void * vl_api_bond_create2_t_print(vl_api_bond_create2_t *mp, void *handle)
bool checksum_offload_enabled
L2 FIB flush all entries.
for(i=1;i<=collision_buckets;i++)
vl_api_interface_index_t sw_if_index
static void * vl_api_want_interface_events_t_print(vl_api_want_interface_events_t *mp, void *handle)
static __clib_unused void * vl_api_sw_interface_set_rx_placement_t_print(vl_api_sw_interface_set_rx_placement_t *mp, void *handle)
static void * vl_api_tap_delete_v2_t_print(vl_api_tap_delete_v2_t *mp, void *handle)
static ip46_address_t to_ip46(u32 is_ipv6, u8 *buf)
static void * vl_api_session_rule_add_del_t_print(vl_api_session_rule_add_del_t *mp, void *handle)
vl_api_mac_address_t host_mac_addr
fib_protocol_t fp_proto
protocol type
IPv6 SR steering add/del.
Dump af_packet interfaces request.
add/del application namespace
static u8 * format_policer_action(u8 *s, va_list *va)
static void * vl_api_classify_add_del_table_t_print(vl_api_classify_add_del_table_t *mp, void *handle)
vl_api_ip4_address_with_prefix_t host_ip4_prefix
u8 * vl_api_from_api_to_new_vec(void *mp, vl_api_string_t *astr)
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
bool disable_indirect_desc
vl_api_transport_proto_t transport_proto
Configure IPFIX exporter process request.
Punt traffic to the host.
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
static void * vl_api_create_vhost_user_if_v2_t_print(vl_api_create_vhost_user_if_v2_t *mp, void *handle)
static void * vl_api_pg_create_interface_t_print(vl_api_pg_create_interface_t *mp, void *handle)
static void * vl_api_ip_address_dump_t_print(vl_api_ip_address_dump_t *mp, void *handle)
static const char * algo_strs[]
vl_api_virtio_flags_t virtio_flags
vl_api_mac_address_t mac_address
static void * vl_api_ip_dump_t_print(vl_api_ip_dump_t *mp, void *handle)
static void * vl_api_control_ping_t_print(vl_api_control_ping_t *mp, void *handle)
vl_api_srv6_sid_list_t sids
vhost-user interface delete request
static void * vl_api_af_packet_dump_t_print(vl_api_af_packet_dump_t *mp, void *handle)
static void * vl_api_mpls_tunnel_add_del_t_print(vl_api_mpls_tunnel_add_del_t *mp, void *handle)
@ L2_API_PORT_TYPE_UU_FWD
Associate the specified interface with a fib table.
Set L2 XConnect between two interfaces request.
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
vhost-user interface create request
vl_api_interface_index_t sw_if_index
vl_api_session_rule_scope_t scope
static void * vl_api_sw_interface_set_table_t_print(vl_api_sw_interface_set_table_t *mp, void *handle)
static void * vl_api_sr_localsid_add_del_t_print(vl_api_sr_localsid_add_del_t *mp, void *handle)
vl_api_mac_address_t mac_address
Initialize a new bond interface with the given paramters.
static void * vl_api_l2fib_flush_all_t_print(vl_api_l2fib_flush_all_t *mp, void *handle)
static void * vl_api_flow_classify_dump_t_print(vl_api_flow_classify_dump_t *mp, void *handle)
static void * vl_api_bond_delete_t_print(vl_api_bond_delete_t *mp, void *handle)
IPFIX exporter dump request.
IP table flush Flush a table of all routes.
static void * vl_api_ip_source_and_port_range_check_add_del_t_print(vl_api_ip_source_and_port_range_check_add_del_t *mp, void *handle)
static void * vl_api_feature_gso_enable_disable_t_print(vl_api_feature_gso_enable_disable_t *mp, void *handle)
L2 interface patch add / del request.
static void * vl_api_p2p_ethernet_add_t_print(vl_api_p2p_ethernet_add_t *mp, void *handle)
Set interface source and L4 port-range request.
vl_api_mpls_tunnel_t mt_tunnel
static u8 * format_bond_load_balance(u8 *s, va_list *args)
static void * vl_api_sw_interface_set_bond_weight_t_print(vl_api_sw_interface_set_bond_weight_t *mp, void *handle)
static __clib_unused void * vl_api_ip_container_proxy_add_del_t_print(vl_api_ip_container_proxy_add_del_t *mp, void *handle)
vl_api_mac_address_t mac_address
Initialize a new tap interface with the given parameters.
bool is_add[default=true]
vl_api_srv6_sid_list_t sids
vl_api_interface_index_t sw_if_index
Interface set bond weight.
vl_api_if_status_flags_t flags
Set bridge flags request.
Set/unset the classification table for an interface request.
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
static __clib_unused void * vl_api_sw_interface_virtio_pci_dump_t_print(vl_api_sw_interface_virtio_pci_dump_t *mp, void *handle)
bool is_add[default=true]
vl_api_sr_policy_op_t operation
static void * vl_api_mpls_route_add_del_t_print(vl_api_mpls_route_add_del_t *mp, void *handle)
static void * vl_api_vxlan_gpe_add_del_tunnel_t_print(vl_api_vxlan_gpe_add_del_tunnel_t *mp, void *handle)
static void * vl_api_bridge_flags_t_print(vl_api_bridge_flags_t *mp, void *handle)
static void * vl_api_sw_interface_set_l2_xconnect_t_print(vl_api_sw_interface_set_l2_xconnect_t *mp, void *handle)
@ TAP_API_FLAG_CSUM_OFFLOAD
vl_api_interface_index_t sw_if_index
vl_api_flow_classify_table_t type
Dump bridge domain IP to MAC entries.
static void * vl_api_l2fib_add_del_t_print(vl_api_l2fib_add_del_t *mp, void *handle)
static void * vl_api_set_ip_flow_hash_t_print(vl_api_set_ip_flow_hash_t *mp, void *handle)
static void * vl_api_ip_table_replace_begin_t_print(vl_api_ip_table_replace_begin_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
Initialize a new bond interface with the given paramters.
IPv6 SR LocalSID add/del request.
vl_api_l2_port_type_t port_type
static void * vl_api_pg_interface_enable_disable_coalesce_t_print(vl_api_pg_interface_enable_disable_coalesce_t *mp, void *handle)
vl_api_address_with_prefix_t prefix
static u8 * format_bond_mode(u8 *s, va_list *args)
Vhost-user interface dump request.
vl_api_address_t collector_address
u8 num_rx_queues[default=1]
u32 new_show_dev_instance
Initialize a new virtio pci interface with the given parameters.
vl_api_mac_event_action_t action
static void * vl_api_l2fib_flush_int_t_print(vl_api_l2fib_flush_int_t *mp, void *handle)
u32 learn_limit[default=1000]
vl_api_interface_index_t sw_if_index
static void * vl_api_ipsec_spd_entry_add_del_t_print(vl_api_ipsec_spd_entry_add_del_t *mp, void *handle)
@ VIRTIO_API_FLAG_BUFFERING
vl_api_qos_record_t record
static void * vl_api_vxlan_gpe_tunnel_dump_t_print(vl_api_vxlan_gpe_tunnel_dump_t *mp, void *handle)
Register to receive L2 MAC events for learned and aged MAC.
char * vl_api_from_api_to_new_c_string(vl_api_string_t *astr)
Call from VLIB_INIT_FUNCTION to set the Linux kernel inject node name.
vl_api_interface_index_t sw_if_index[default=0xffffffff]
static void * vl_api_memclnt_create_t_print(vl_api_memclnt_create_t *mp, void *handle)
vl_api_ipsec_sad_entry_t entry
vl_api_interface_index_t sw_if_index
bool is_add[default=true]
@ QOS_POLICER_TYPE_2R3C_RFC_MEF5CF1
u32 miss_next_index[default=0xffffffff]
Aggregate type for a prefix.
Create a point-to-point (p2p) Ethernet sub-interface.
static void * vl_api_policer_classify_dump_t_print(vl_api_policer_classify_dump_t *mp, void *handle)
static void * vl_api_sw_interface_set_vxlan_gbp_bypass_t_print(vl_api_sw_interface_set_vxlan_gbp_bypass_t *mp, void *handle)
Set/unset output ACL interface.
static void * vl_api_set_ipfix_exporter_t_print(vl_api_set_ipfix_exporter_t *mp, void *handle)
Add / del table request A table can be added multiple times, but need be deleted only once.
Enable/Disable span to mirror traffic from one interface to another.
Create a new subinterface with the given vlan id.
static const char * integ_strs[]
vl_api_interface_index_t sw_if_index
static void * vl_api_ip_table_add_del_t_print(vl_api_ip_table_add_del_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
bool mt_is_add[default=true]
static void * vl_api_get_next_index_t_print(vl_api_get_next_index_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
static void * vl_api_af_packet_create_t_print(vl_api_af_packet_create_t *mp, void *handle)
vl_api_interface_index_t sw_if_index
static void * vl_api_sw_interface_set_vpath_t_print(vl_api_sw_interface_set_vpath_t *mp, void *handle)
static void * vl_api_sw_interface_rx_placement_dump_t_print(vl_api_sw_interface_rx_placement_dump_t *mp, void *handle)
L2 bridge domain request operational state details.
vl_api_interface_index_t unnumbered_sw_if_index
vl_api_wireguard_peer_flags_t flags