| /xnu-11215/libsyscall/wrappers/skywalk/ |
| H A D | os_nexus.c | 90 struct nexus_controller *ncd = NULL; in os_nexus_controller_create() local 102 ncd = malloc(sizeof(*ncd)); in os_nexus_controller_create() 103 if (ncd == NULL) { in os_nexus_controller_create() 107 bzero(ncd, sizeof(*ncd)); in os_nexus_controller_create() 108 ncd->ncd_fd = fd; in os_nexus_controller_create() 109 ncd->ncd_guard = init.ni_guard; in os_nexus_controller_create() 111 return ncd; in os_nexus_controller_create() 117 return ncd->ncd_fd; in os_nexus_controller_get_fd() 361 if (ncd->ncd_fd != -1) { in os_nexus_controller_destroy() 362 (void) guarded_close_np(ncd->ncd_fd, &ncd->ncd_guard); in os_nexus_controller_destroy() [all …]
|
| /xnu-11215/tests/skywalk/ |
| H A D | skt_closenfd.c | 42 nexus_controller_t ncd; in skt_closenfd_main() local 45 ncd = os_nexus_controller_create(); in skt_closenfd_main() 46 assert(ncd); in skt_closenfd_main() 54 os_nexus_controller_destroy(ncd); in skt_closenfd_main() 72 nexus_controller_t ncd; in skt_writenfd_main() local 77 ncd = os_nexus_controller_create(); in skt_writenfd_main() 78 assert(ncd); in skt_writenfd_main() 87 os_nexus_controller_destroy(ncd); in skt_writenfd_main() 103 nexus_controller_t ncd; in skt_readnfd_main() local 109 assert(ncd); in skt_readnfd_main() [all …]
|
| H A D | skt_teardown.c | 63 nexus_controller_t ncd; in skt_teardown_pass() local 90 ncd = os_nexus_controller_create(); in skt_teardown_pass() 91 assert(ncd); in skt_teardown_pass() 97 sktc_build_nexus(ncd, &attr, &nf_provider, &nf_instance0); in skt_teardown_pass() 106 error = os_nexus_controller_alloc_provider_instance(ncd, in skt_teardown_pass() 119 sktc_build_nexus(ncd, &attr, &ms_provider, &ms_instance); in skt_teardown_pass() 132 error = sktc_bind_tcp4_flow(ncd, ms_instance, 0, in skt_teardown_pass() 157 error = __os_nexus_ifdetach(ncd, ms_instance, nf_attach0); in skt_teardown_pass() 169 error = __os_nexus_ifdetach(ncd, nf_instance1, feth1_attach); in skt_teardown_pass() 177 error = __os_nexus_ifdetach(ncd, nf_instance0, feth0_attach); in skt_teardown_pass() [all …]
|
| H A D | skt_fswloop.c | 80 nexus_controller_t ncd; in skt_fswloop2_common() local 86 ncd = os_nexus_controller_create(); in skt_fswloop2_common() 87 assert(ncd); in skt_fswloop2_common() 93 sktc_build_nexus(ncd, &attr, &provider0, &instance0); in skt_fswloop2_common() 97 sktc_build_nexus(ncd, &attr, &provider1, &instance1); in skt_fswloop2_common() 103 sktc_build_nexus(ncd, &attr, &netif_provider, &netif0_instance); in skt_fswloop2_common() 105 error = __os_nexus_ifattach(ncd, netif0_instance, FETH0_NAME, in skt_fswloop2_common() 109 error = os_nexus_controller_alloc_provider_instance(ncd, in skt_fswloop2_common() 113 error = __os_nexus_ifattach(ncd, netif1_instance, FETH1_NAME, in skt_fswloop2_common() 118 error = __os_nexus_ifattach(ncd, instance1, NULL, instance0, false, &attach); in skt_fswloop2_common() [all …]
|
| H A D | skt_fsw29301703.c | 52 nexus_controller_t ncd; in skt_fsw29301703_common() local 63 ncd = os_nexus_controller_create(); in skt_fsw29301703_common() 64 assert(ncd); in skt_fsw29301703_common() 70 sktc_build_nexus(ncd, &attr, &fsw_provider, &fsw_instance); in skt_fsw29301703_common() 76 sktc_build_nexus(ncd, &attr, &netif_provider, &netif_instance); in skt_fsw29301703_common() 78 error = __os_nexus_ifattach(ncd, netif_instance, FETH0_NAME, NULL, in skt_fsw29301703_common() 82 error = __os_nexus_ifattach(ncd, fsw_instance, NULL, netif_instance, in skt_fsw29301703_common()
|
| H A D | skt_manyflows.c | 49 do_flows(nexus_controller_t ncd, const uuid_t fsw, nexus_port_t nx_port_start, int nports, int nflo… in do_flows() argument 56 error = sktc_bind_tcp4_flow(ncd, fsw, 0, nx_port_start + i, flows[i * nflows_per_port + j]); in do_flows() 63 undo_flows(nexus_controller_t ncd, const uuid_t fsw, int nflows, const uuid_t flows[]) in undo_flows() argument 70 error = sktc_unbind_flow(ncd, fsw, flows[i]); in undo_flows()
|
| H A D | skywalk_test_utils.h | 236 int sktc_bind_tcp4_flow(nexus_controller_t ncd, const uuid_t fsw, in_port_t in_port, nexus_port_t n… 237 int sktc_unbind_flow(nexus_controller_t ncd, const uuid_t fsw, const uuid_t flow);
|
| H A D | skt_filter.c | 446 custom_ether_setup_flow(nexus_controller_t ncd, uuid_t uuid, in custom_ether_setup_flow() argument 461 error = __os_nexus_flow_add(ncd, uuid, &nfr); in custom_ether_setup_flow() 737 filter_setup_flow(nexus_controller_t ncd, uuid_t uuid, in filter_setup_flow() argument 751 error = __os_nexus_flow_add(ncd, uuid, &nfr); in filter_setup_flow()
|
| H A D | skywalk_test_common.h | 147 extern void sktc_build_nexus(nexus_controller_t ncd,
|
| H A D | skywalk_test_utils.c | 85 sktc_build_nexus(nexus_controller_t ncd, struct sktc_nexus_attr *sktc_attr, in sktc_build_nexus() argument 147 error = os_nexus_controller_register_provider(ncd, in sktc_build_nexus() 174 error = os_nexus_controller_read_provider_attr(ncd, in sktc_build_nexus() 244 error = os_nexus_controller_alloc_provider_instance(ncd, in sktc_build_nexus() 706 sktc_bind_tcp4_flow(nexus_controller_t ncd, const uuid_t fsw, in_port_t in_port, nexus_port_t nx_po… in sktc_bind_tcp4_flow() argument 730 error = __os_nexus_flow_add(ncd, fsw, &nfr); in sktc_bind_tcp4_flow() 782 sktc_unbind_flow(nexus_controller_t ncd, const uuid_t fsw, const uuid_t flow) in sktc_unbind_flow() argument 790 error = __os_nexus_flow_del(ncd, fsw, &nfr); in sktc_unbind_flow()
|
| H A D | skt_xfer.c | 272 connect_flow(nexus_controller_t ncd, in connect_flow() argument 299 error = __os_nexus_flow_add(ncd, fsw, &nfr); in connect_flow() 315 connect_child_flow(nexus_controller_t ncd, in connect_child_flow() argument 350 error = __os_nexus_flow_add(ncd, fsw, &nfr); in connect_child_flow()
|
| /xnu-11215/bsd/skywalk/nexus/ |
| H A D | nexus_kern.c | 788 zfree(ncd_zone, ncd); in ncd_free() 806 if (ncd == NULL) { in kern_nexus_controller_create() 810 *ncd = NULL; in kern_nexus_controller_create() 828 if (ncd != NULL && *ncd != NULL) { in kern_nexus_controller_create() 829 ncd_free(*ncd); in kern_nexus_controller_create() 830 *ncd = NULL; in kern_nexus_controller_create() 955 if (ncd == NULL || in kern_nexus_controller_register_provider() 1330 if (ncd == NULL) { in kern_nexus_controller_destroy() 1336 ncd->ncd_nxctl = NULL; in kern_nexus_controller_destroy() 1339 ncd_free(ncd); in kern_nexus_controller_destroy() [all …]
|
| H A D | os_nexus_private.h | 683 extern int __os_nexus_flow_add(const nexus_controller_t ncd, 685 extern int __os_nexus_flow_del(const nexus_controller_t ncd, 687 extern int __os_nexus_get_llink_info(const nexus_controller_t ncd,
|
| H A D | os_nexus.h | 1110 extern int kern_nexus_flow_add(const nexus_controller_t ncd, 1112 extern int kern_nexus_flow_del(const nexus_controller_t ncd,
|