FreeBSD/sys/dev/netmap/netmap_vale.c
/* nm_dtor callback for ephemeral VALE ports */
nm_dtor callback for ephemeral VALE ports
nm_dtor callback for ephemeral VALE ports
static void
netmap_vp_dtor(struct netmap_adapter *na)
{
	struct netmap_vp_adapter *vpna = (struct netmap_vp_adapter*)na;
	struct nm_bridge *b = vpna->na_bdg;
	ND("%s has %d references", na->name, na->na_refcount);
	if (b) {
		netmap_bdg_detach_common(b, vpna->bdg_port, -1);
	}
}
static void netmap_vp_dtor ( struct netmap_adapter * na ) { struct netmap_vp_adapter * vpna = ( struct netmap_vp_adapter * ) na ; struct nm_bridge * b = vpna -> na_bdg ; ND ( " " , na -> name , na -> na_refcount ) ; if ( b ) { netmap_bdg_detach_common ( b , vpna -> bdg_port , -1 ) ; } }
nm_dtor callback for ephemeral VALE ports
nm_dtor callback for ephemeral VALE ports