X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp%2Fapi%2Fcustom_dump.c;h=2c2c7ab06fcb243147856c40e71aa4d0a95e47f1;hb=49ee68443d41ffe1ab72c964104da980a2eb4367;hp=0122496a6f6d3bc06d6d8de1ff6f4af55a29ad53;hpb=34716fae918750e4fc7a7da4b06e0dfbdef2d1c5;p=vpp.git diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c index 0122496a6f6..2c2c7ab06fc 100644 --- a/src/vpp/api/custom_dump.c +++ b/src/vpp/api/custom_dump.c @@ -119,7 +119,8 @@ static void *vl_api_sw_interface_set_flags_t_print FINISH; } -static void *vl_api_sw_interface_set_rx_placement_t_print +__clib_unused + static void *vl_api_sw_interface_set_rx_placement_t_print (vl_api_sw_interface_set_rx_placement_t * mp, void *handle) { u8 *s; @@ -136,7 +137,8 @@ static void *vl_api_sw_interface_set_rx_placement_t_print FINISH; } -static void *vl_api_sw_interface_rx_placement_dump_t_print +__clib_unused + static void *vl_api_sw_interface_rx_placement_dump_t_print (vl_api_sw_interface_rx_placement_dump_t * mp, void *handle) { u8 *s; @@ -528,7 +530,8 @@ static void *vl_api_bd_ip_mac_flush_t_print FINISH; } -static void *vl_api_bd_ip_mac_dump_t_print +__clib_unused + static void *vl_api_bd_ip_mac_dump_t_print (vl_api_bd_ip_mac_dump_t * mp, void *handle) { u8 *s; @@ -598,7 +601,8 @@ static void *vl_api_sw_interface_tap_v2_dump_t_print FINISH; } -static void *vl_api_virtio_pci_create_t_print +__clib_unused + static void *vl_api_virtio_pci_create_t_print (vl_api_virtio_pci_create_t * mp, void *handle) { u8 *s; @@ -613,10 +617,13 @@ static void *vl_api_virtio_pci_create_t_print format_ethernet_address, mp->mac_address); if (mp->features) s = format (s, "features 0x%llx ", clib_net_to_host_u64 (mp->features)); + if (mp->gso_enabled) + s = format (s, "gso-enabled"); FINISH; } -static void *vl_api_virtio_pci_delete_t_print +__clib_unused + static void *vl_api_virtio_pci_delete_t_print (vl_api_virtio_pci_delete_t * mp, void *handle) { u8 *s; @@ -627,7 +634,8 @@ static void *vl_api_virtio_pci_delete_t_print FINISH; } -static void *vl_api_sw_interface_virtio_pci_dump_t_print +__clib_unused + static void *vl_api_sw_interface_virtio_pci_dump_t_print (vl_api_sw_interface_virtio_pci_dump_t * mp, void *handle) { u8 *s; @@ -696,7 +704,8 @@ static void *vl_api_bond_detach_slave_t_print FINISH; } -static void *vl_api_sw_interface_bond_dump_t_print +__clib_unused + static void *vl_api_sw_interface_bond_dump_t_print (vl_api_sw_interface_bond_dump_t * mp, void *handle) { u8 *s; @@ -706,7 +715,8 @@ static void *vl_api_sw_interface_bond_dump_t_print FINISH; } -static void *vl_api_sw_interface_slave_dump_t_print +__clib_unused + static void *vl_api_sw_interface_slave_dump_t_print (vl_api_sw_interface_slave_dump_t * mp, void *handle) { u8 *s; @@ -1918,10 +1928,10 @@ static void *vl_api_gre_tunnel_add_del_t_print s = format (s, "instance %d ", ntohl (mp->tunnel.instance)); - if (mp->tunnel.type == GRE_TUNNEL_TYPE_TEB) + if (mp->tunnel.type == GRE_API_TUNNEL_TYPE_TEB) s = format (s, "teb "); - if (mp->tunnel.type == GRE_TUNNEL_TYPE_ERSPAN) + if (mp->tunnel.type == GRE_API_TUNNEL_TYPE_ERSPAN) s = format (s, "erspan %d ", ntohs (mp->tunnel.session_id)); if (mp->tunnel.outer_fib_id) @@ -2151,7 +2161,8 @@ static void *vl_api_show_version_t_print FINISH; } -static void *vl_api_show_threads_t_print +__clib_unused + static void *vl_api_show_threads_t_print (vl_api_show_threads_t * mp, void *handle) { u8 *s; @@ -3402,13 +3413,17 @@ vl_api_set_punt_t_print (vl_api_set_punt_t * mp, void *handle) s = format (0, "SCRIPT: punt "); - if (mp->punt.ipv != (u8) ~ 0) - s = format (s, "ip %d ", mp->punt.ipv); + switch (clib_net_to_host_u32 (mp->punt.type)) + { + case PUNT_API_TYPE_L4: + s = format (s, "%U", format_vl_api_address_family, mp->punt.punt.l4.af); - s = format (s, "protocol %d ", mp->punt.l4_protocol); + s = format (s, "protocol %d ", mp->punt.punt.l4.protocol); - if (mp->punt.l4_port != (u16) ~ 0) - s = format (s, "port %d ", ntohs (mp->punt.l4_port)); + if (mp->punt.punt.l4.port != (u16) ~ 0) + s = format (s, "port %d ", ntohs (mp->punt.punt.l4.port)); + break; + } if (!mp->is_add) s = format (s, "del "); @@ -3573,7 +3588,7 @@ static void *vl_api_tcp_configure_src_addresses_t_print static void *vl_api_app_namespace_add_del_t_print (vl_api_app_namespace_add_del_t * mp, void *handle) { - u8 *s, *ns_id = 0; + u8 *s; u8 len = clib_min (mp->namespace_id_len, ARRAY_LEN (mp->namespace_id) - 1); mp->namespace_id[len] = 0; @@ -3702,7 +3717,8 @@ static void *vl_api_session_rule_add_del_t_print FINISH; } -static void *vl_api_ip_container_proxy_add_del_t_print +__clib_unused + static void *vl_api_ip_container_proxy_add_del_t_print (vl_api_ip_container_proxy_add_del_t * mp, void *handle) { u8 *s;