Lines Matching refs:portp

516 			(void) vsw_portsend(fp->portp, mp);  in vsw_switch_l2_frame()
639 (void) vsw_portsend(fp->portp, mp); in vsw_switch_l3_frame()
713 vsw_port_t *portp; in vsw_forward_all() local
752 for (portp = plist->head; portp != NULL; portp = portp->p_next) { in vsw_forward_all()
753 D2(vswp, "vsw_forward_all: port %d", portp->p_instance); in vsw_forward_all()
759 if ((skip_port) && (portp == arg)) { in vsw_forward_all()
769 (void) vsw_portsend(portp, nmp); in vsw_forward_all()
951 vsw_port_t *portp = (vsw_port_t *)arg; in vsw_vlan_create_hash() local
954 portp->p_instance); in vsw_vlan_create_hash()
956 portp->vlan_nchains = vsw_vlan_nchains; in vsw_vlan_create_hash()
957 portp->vlan_hashp = mod_hash_create_idhash(hashname, in vsw_vlan_create_hash()
958 portp->vlan_nchains, mod_hash_null_valdtor); in vsw_vlan_create_hash()
977 vsw_port_t *portp = (vsw_port_t *)arg; in vsw_vlan_destroy_hash() local
979 mod_hash_destroy_hash(portp->vlan_hashp); in vsw_vlan_destroy_hash()
980 portp->vlan_nchains = 0; in vsw_vlan_destroy_hash()
1018 vsw_port_t *portp = (vsw_port_t *)arg; in vsw_vlan_add_ids() local
1019 vsw_t *vswp = portp->p_vswp; in vsw_vlan_add_ids()
1021 rv = mod_hash_insert(portp->vlan_hashp, in vsw_vlan_add_ids()
1022 (mod_hash_key_t)VLAN_ID_KEY(portp->pvid), in vsw_vlan_add_ids()
1027 portp->p_instance); in vsw_vlan_add_ids()
1030 for (i = 0; i < portp->nvids; i++) { in vsw_vlan_add_ids()
1031 rv = mod_hash_insert(portp->vlan_hashp, in vsw_vlan_add_ids()
1032 (mod_hash_key_t)VLAN_ID_KEY(portp->vids[i].vl_vid), in vsw_vlan_add_ids()
1037 vswp->pvid, portp->p_instance); in vsw_vlan_add_ids()
1078 vsw_port_t *portp = (vsw_port_t *)arg; in vsw_vlan_remove_ids() local
1080 portp = (vsw_port_t *)arg; in vsw_vlan_remove_ids()
1081 rv = vsw_vlan_lookup(portp->vlan_hashp, portp->pvid); in vsw_vlan_remove_ids()
1083 rv = mod_hash_remove(portp->vlan_hashp, in vsw_vlan_remove_ids()
1084 (mod_hash_key_t)VLAN_ID_KEY(portp->pvid), in vsw_vlan_remove_ids()
1089 for (i = 0; i < portp->nvids; i++) { in vsw_vlan_remove_ids()
1090 rv = vsw_vlan_lookup(portp->vlan_hashp, in vsw_vlan_remove_ids()
1091 portp->vids[i].vl_vid); in vsw_vlan_remove_ids()
1093 rv = mod_hash_remove(portp->vlan_hashp, in vsw_vlan_remove_ids()
1095 portp->vids[i].vl_vid), in vsw_vlan_remove_ids()
1131 vsw_port_t *portp; in vsw_fdbe_add() local
1135 portp = (vsw_port_t *)port; in vsw_fdbe_add()
1136 KEY_HASH(addr, &portp->p_macaddr); in vsw_fdbe_add()
1139 fp->portp = port; in vsw_fdbe_add()
1149 ether_sprintf(&portp->p_macaddr), portp->p_instance); in vsw_fdbe_add()
1244 vsw_port_t *portp; in vsw_vlan_frame_pretag() local
1257 portp = NULL; in vsw_vlan_frame_pretag()
1260 portp = (vsw_port_t *)arg; in vsw_vlan_frame_pretag()
1261 pvid = portp->pvid; in vsw_vlan_frame_pretag()
1262 vswp = portp->p_vswp; in vsw_vlan_frame_pretag()
1327 vsw_port_t *portp; in vsw_vlan_frame_untag() local
1344 portp = NULL; in vsw_vlan_frame_untag()
1347 portp = (vsw_port_t *)arg; in vsw_vlan_frame_untag()
1348 vswp = portp->p_vswp; in vsw_vlan_frame_untag()
1349 vlan_hashp = portp->vlan_hashp; in vsw_vlan_frame_untag()
1350 pvid = portp->pvid; in vsw_vlan_frame_untag()
1481 vsw_port_t *portp; in vsw_frame_lookup_vid() local
1498 portp = (vsw_port_t *)arg; in vsw_frame_lookup_vid()
1499 *vidp = portp->pvid; in vsw_frame_lookup_vid()