summaryrefslogtreecommitdiffstats
path: root/src/vnet
ModeNameSize
-rw-r--r--CMakeLists.txt33059logstatsplain
-rw-r--r--MTU.md2771logstatsplain
d---------adj970logstatsplain
-rw-r--r--api_errno.h11181logstatsplain
d---------arp295logstatsplain
d---------bfd563logstatsplain
d---------bier1607logstatsplain
d---------bonding282logstatsplain
-rw-r--r--buffer.c2470logstatsplain
-rw-r--r--buffer.h16286logstatsplain
d---------classify664logstatsplain
-rw-r--r--config.c12899logstatsplain
-rw-r--r--config.h5595logstatsplain
d---------crypto284logstatsplain
d---------devices278logstatsplain
-rw-r--r--dir.dox973logstatsplain
d---------dpo1520logstatsplain
d---------ethernet999logstatsplain
d---------feature236logstatsplain
d---------fib2584logstatsplain
d---------flow262logstatsplain
-rw-r--r--format_fns.h794logstatsplain
-rw-r--r--global_funcs.h949logstatsplain
d---------gre387logstatsplain
d---------gso394logstatsplain
-rw-r--r--handoff.c8746logstatsplain
-rw-r--r--handoff.h6232logstatsplain
d---------hdlc207logstatsplain
-rw-r--r--interface.api20163logstatsplain
-rw-r--r--interface.c53279logstatsplain
-rw-r--r--interface.h33482logstatsplain
d---------interface119logstatsplain
-rw-r--r--interface_api.c42727logstatsplain
-rw-r--r--interface_cli.c72452logstatsplain
-rw-r--r--interface_format.c24759logstatsplain
-rw-r--r--interface_funcs.h17656logstatsplain
-rw-r--r--interface_output.c34198logstatsplain
-rw-r--r--interface_output.h3993logstatsplain
-rw-r--r--interface_stats.c5606logstatsplain
-rw-r--r--interface_types.api2022logstatsplain
-rw-r--r--interface_types_api.c1188logstatsplain
-rw-r--r--interface_types_api.h1069logstatsplain
d---------ip-neighbor654logstatsplain
d---------ip3612logstatsplain
d---------ip6-nd528logstatsplain
d---------ipfix-export395logstatsplain
d---------ipip324logstatsplain
d---------ipsec1355logstatsplain
d---------l21723logstatsplain
-rw-r--r--l3_types.h2206logstatsplain
d---------lawful-intercept126logstatsplain
d---------llc132logstatsplain
d---------mfib1035logstatsplain
-rw-r--r--misc.c3682logstatsplain
-rw-r--r--mpcap.h2975logstatsplain
d---------mpls654logstatsplain
d---------osi132logstatsplain
d---------pg426logstatsplain
-rw-r--r--pipeline.h9871logstatsplain
d---------plugin36logstatsplain
d---------policer420logstatsplain
d---------ppp205logstatsplain
d---------qos644logstatsplain
d---------session1475logstatsplain
d---------snap134logstatsplain
d---------span215logstatsplain
d---------srmpls319logstatsplain
d---------srp210logstatsplain
d---------srv6578logstatsplain
d---------syslog305logstatsplain
d---------tcp996logstatsplain
d---------teib180logstatsplain
d---------tls144logstatsplain
d---------tunnel287logstatsplain
d---------udp652logstatsplain
d---------unix188logstatsplain
d---------util262logstatsplain
-rw-r--r--vnet.h4065logstatsplain
-rw-r--r--vnet_all_api_h.h2494logstatsplain
-rw-r--r--vnet_msg_enum.h1028logstatsplain
d---------vxlan-gbp406logstatsplain
d---------vxlan-gpe445logstatsplain
d---------vxlan376logstatsplain
an>ping_id); vam->result_ready = 0; S (mp_ping); W (ret); return ret; } static u8 * format_pci_addr (u8 * s, va_list * va) { vlib_pci_addr_t *addr = va_arg (*va, vlib_pci_addr_t *); return format (s, "%04x:%02x:%02x.%x", addr->domain, addr->bus, addr->slot, addr->function); } static void vl_api_vmxnet3_details_t_handler (vl_api_vmxnet3_details_t * mp) { vat_main_t *vam = vmxnet3_test_main.vat_main; u32 pci_addr = ntohl (mp->pci_addr); u16 qid; fformat (vam->ofp, "%s: sw_if_index %u mac %U\n" " version: %u\n" " PCI Address: %U\n" " state %s\n", mp->if_name, ntohl (mp->sw_if_index), format_ethernet_address, mp->hw_addr, mp->version, format_pci_addr, &pci_addr, mp->admin_up_down ? "up" : "down"); for (qid = 0; qid < mp->rx_count; qid++) { vl_api_vmxnet3_rx_list_t *rx_list = &mp->rx_list[qid]; fformat (vam->ofp, " RX Queue %u\n" " RX completion next index %u\n" " ring 0 size %u fill %u consume %u produce %u\n" " ring 1 size %u fill %u consume %u produce %u\n", qid, ntohs (rx_list->rx_next), ntohs (rx_list->rx_qsize), ntohs (rx_list->rx_fill[0]), ntohs (rx_list->rx_consume[0]), ntohs (rx_list->rx_produce[0]), ntohs (rx_list->rx_qsize), ntohs (rx_list->rx_fill[1]), ntohs (rx_list->rx_consume[1]), ntohs (rx_list->rx_produce[1])); } for (qid = 0; qid < mp->tx_count; qid++) { vl_api_vmxnet3_tx_list_t *tx_list = &mp->tx_list[qid]; fformat (vam->ofp, " TX Queue %u\n" " TX completion next index %u\n" " size %u consume %u produce %u\n", qid, ntohs (tx_list->tx_next), ntohs (tx_list->tx_qsize), ntohs (tx_list->tx_consume), ntohs (tx_list->tx_produce)); } } /* * List of messages that the api test plugin sends, * and that the data plane plugin processes */ #define foreach_vpe_api_msg \ _(vmxnet3_create, "<pci-address> [rx-queue-size <size>] " \ "[tx-queue-size <size>] [num-tx-queues <num>]" \ "[num-rx-queues <num>] [bind]") \ _(vmxnet3_delete, "sw_if_index <sw_if_index>") \ _(vmxnet3_dump, "") static void vmxnet3_vat_api_hookup (vat_main_t * vam) { vmxnet3_test_main_t *vxm __attribute__ ((unused)) = &vmxnet3_test_main; #define _(N,n) \ vl_msg_api_set_handlers((VL_API_##N + vxm->msg_id_base), \ #n, \ vl_api_##n##_t_handler, \ vl_noop_handler, \ vl_api_##n##_t_endian, \ vl_api_##n##_t_print, \ sizeof(vl_api_##n##_t), 1); foreach_vpe_api_reply_msg; #undef _ #define _(n,h) \ hash_set_mem (vam->function_by_name, #n, api_##n); foreach_vpe_api_msg; #undef _ #define _(n,h) hash_set_mem (vam->help_by_name, #n, h); foreach_vpe_api_msg; #undef _ } clib_error_t * vat_plugin_register (vat_main_t * vam) { vmxnet3_test_main_t *vxm = &vmxnet3_test_main; u8 *name; vxm->vat_main = vam; name = format (0, "vmxnet3_%08x%c", api_version, 0); vxm->msg_id_base = vl_client_get_first_plugin_msg_id ((char *) name); /* Get the control ping ID */ #define _(id,n,crc) \ const char *id ## _CRC __attribute__ ((unused)) = #n "_" #crc; foreach_vl_msg_name_crc_vpe; #undef _ vxm->ping_id = vl_msg_api_get_msg_index ((u8 *) (VL_API_CONTROL_PING_CRC)); if (vxm->msg_id_base != (u16) ~ 0) vmxnet3_vat_api_hookup (vam); vec_free (name); return 0; } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */