Lines Matching refs:vpna
323 struct netmap_vp_adapter *vpna; in netmap_vale_list() local
346 vpna = b->bdg_ports[i]; in netmap_vale_list()
347 if (vpna == NULL) { in netmap_vale_list()
354 if (!strcmp(vpna->up.name, hdr->nr_name)) { in netmap_vale_list()
377 vpna = b->bdg_ports[j]; in netmap_vale_list()
379 strlcpy(hdr->nr_name, vpna->up.name, in netmap_vale_list()
400 struct netmap_vp_adapter *vpna = (struct netmap_vp_adapter*)na; in netmap_vale_vp_dtor() local
401 struct nm_bridge *b = vpna->na_bdg; in netmap_vale_vp_dtor()
406 netmap_bdg_detach_common(b, vpna->bdg_port, -1); in netmap_vale_vp_dtor()
411 if (vpna->autodelete) { in netmap_vale_vp_dtor()
1144 struct netmap_vp_adapter *vpna; in netmap_vale_vp_create() local
1154 vpna = nm_os_malloc(sizeof(*vpna)); in netmap_vale_vp_create()
1155 if (vpna == NULL) in netmap_vale_vp_create()
1158 na = &vpna->up; in netmap_vale_vp_create()
1189 vpna->mfs = NM_BDG_MFS_DEFAULT; in netmap_vale_vp_create()
1190 vpna->last_smac = ~0llu; in netmap_vale_vp_create()
1194 nm_prinf("max frame size %u", vpna->mfs); in netmap_vale_vp_create()
1222 *ret = vpna; in netmap_vale_vp_create()
1228 nm_os_free(vpna); in netmap_vale_vp_create()
1239 struct netmap_vp_adapter *vpna = (struct netmap_vp_adapter *)na; in netmap_vale_vp_bdg_attach() local
1241 if ((b->bdg_flags & NM_BDG_NEED_BWRAP) || vpna->na_bdg) { in netmap_vale_vp_bdg_attach()
1244 na->na_vp = vpna; in netmap_vale_vp_bdg_attach()
1354 struct netmap_vp_adapter *vpna; in nm_vi_destroy() local
1367 vpna = (struct netmap_vp_adapter *)NA(ifp); in nm_vi_destroy()
1370 if (vpna->autodelete) { in nm_vi_destroy()
1376 if (NETMAP_OWNED_BY_ANY(&vpna->up) || in nm_vi_destroy()
1377 vpna->up.na_refcount > 1 /* any ref besides the one in nm_vi_create()? */) { in nm_vi_destroy()
1421 struct netmap_vp_adapter *vpna; in netmap_vi_create() local
1461 error = netmap_vale_vp_create(hdr, ifp, nmd, &vpna); in netmap_vi_create()
1468 vpna->up.nm_bdg_ctl = netmap_vp_bdg_ctl; in netmap_vi_create()
1470 netmap_adapter_get(&vpna->up); in netmap_vi_create()
1472 vpna->autodelete = 1; in netmap_vi_create()
1474 NM_ATTACH_NA(ifp, &vpna->up); in netmap_vi_create()
1476 error = nm_update_info(req, &vpna->up); in netmap_vi_create()