FreeBSD/sys/dev/netmap/netmap_vale.c
/* nm_bdg_attach callback for VALE ports
 * The na_vp port is this same netmap_adapter. There is no host port.
 */
nm_bdg_attach callback for VALE ports
The na_vp port is this same netmap_adapter. There is no host port.
nm_bdg_attach callback for VALE ports The na_vp port is this same netmap_adapter . There is no host port .
static int
netmap_vp_bdg_attach(const char *name, struct netmap_adapter *na)
{
	struct netmap_vp_adapter *vpna = (struct netmap_vp_adapter *)na;
	if (vpna->na_bdg)
		return EBUSY;
	na->na_vp = vpna;
	strncpy(na->name, name, sizeof(na->name));
	na->na_hostvp = NULL;
	return 0;
}
static int netmap_vp_bdg_attach ( const char * name , struct netmap_adapter * na ) { struct netmap_vp_adapter * vpna = ( struct netmap_vp_adapter * ) na ; if ( vpna -> na_bdg ) return EBUSY ; na -> na_vp = vpna ; strncpy ( na -> name , name , sizeof ( na -> name ) ) ; na -> na_hostvp = NULL ; return 0 ; }
nm_bdg_attach callback for VALE ports
 The na_vp port is this same netmap_adapter.
nm_bdg_attach callback for VALE ports The na_vp port is this same netmap_adapter .