Home
last modified time | relevance | path

Searched refs:hostna (Results 1 – 5 of 5) sorted by relevance

/xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/
H A Dfsw_classq.c34 fsw_classq_setup(struct nx_flowswitch *fsw, struct nexus_adapter *hostna) in fsw_classq_setup() argument
37 ASSERT(hostna->na_ifp->if_snd->ifcq_type != PKTSCHEDT_NONE); in fsw_classq_setup()
38 ASSERT(hostna->na_ifp->if_eflags & IFEF_TXSTART); in fsw_classq_setup()
39 if (hostna->na_type == NA_NETIF_COMPAT_HOST) { in fsw_classq_setup()
42 ASSERT(hostna->na_type == NA_NETIF_HOST); in fsw_classq_setup()
48 fsw_classq_teardown(struct nx_flowswitch *fsw, struct nexus_adapter *hostna) in fsw_classq_teardown() argument
54 ASSERT(hostna->na_ifp->if_snd->ifcq_type != PKTSCHEDT_NONE); in fsw_classq_teardown()
55 ASSERT(hostna->na_ifp->if_eflags & IFEF_TXSTART); in fsw_classq_teardown()
56 if (hostna->na_type == NA_NETIF_COMPAT_HOST) { in fsw_classq_teardown()
59 ASSERT(hostna->na_type == NA_NETIF_HOST); in fsw_classq_teardown()
[all …]
H A Dfsw_var.h132 struct nexus_adapter *hostna);
134 struct nexus_adapter *hostna);
209 struct nexus_adapter *hostna);
211 struct nexus_adapter *hostna);
/xnu-12377.61.12/bsd/skywalk/nexus/netif/
H A Dnx_netif_compat.c1567 struct nexus_adapter *__single hostna = NULL; in nx_netif_compat_attach() local
1684 hostna = &hostnca->nca_up.nifna_up; in nx_netif_compat_attach()
1685 (void) snprintf(hostna->na_name, sizeof(hostna->na_name), in nx_netif_compat_attach()
1687 uuid_generate_random(hostna->na_uuid); in nx_netif_compat_attach()
1693 hostna->na_private = ifp; in nx_netif_compat_attach()
1694 ASSERT(hostna->na_ifp == NULL); in nx_netif_compat_attach()
1696 ASSERT(hostna->na_private == NULL); in nx_netif_compat_attach()
1697 hostna->na_ifp = devna->na_ifp; in nx_netif_compat_attach()
1698 ifnet_incr_iorefcnt(hostna->na_ifp); in nx_netif_compat_attach()
1700 hostna->na_type = NA_NETIF_COMPAT_HOST; in nx_netif_compat_attach()
[all …]
H A Dnx_netif.c2248 struct nexus_adapter *__single hostna = NULL; in nx_netif_attach() local
2368 hostna = &hostnifna->nifna_up; in nx_netif_attach()
2369 (void) snprintf(hostna->na_name, sizeof(hostna->na_name), in nx_netif_attach()
2371 uuid_generate_random(hostna->na_uuid); in nx_netif_attach()
2377 hostna->na_private = ifp; in nx_netif_attach()
2378 ASSERT(hostna->na_ifp == NULL); in nx_netif_attach()
2380 ASSERT(hostna->na_private == NULL); in nx_netif_attach()
2381 hostna->na_ifp = devna->na_ifp; in nx_netif_attach()
2382 ifnet_incr_iorefcnt(hostna->na_ifp); in nx_netif_attach()
2384 hostna->na_type = NA_NETIF_HOST; in nx_netif_attach()
[all …]
H A Dnx_netif_host.c441 struct nexus_adapter *hostna = nx_port_get_na(nx, NEXUS_PORT_NET_IF_HOST); in nx_netif_host_output() local
455 ASSERT(hostna->na_type == NA_NETIF_HOST); in nx_netif_host_output()
485 if (__improbable(!NA_IS_ACTIVE(hwna) || !NA_IS_ACTIVE(hostna))) { in nx_netif_host_output()
496 if (__improbable(KR_DROP(&hostna->na_rx_rings[0]) || KR_DROP(kring))) { in nx_netif_host_output()