Lines Matching refs:portp

82 static void vsw_mac_multicast_add_all(vsw_t *vswp, vsw_port_t *portp, int type);
84 vsw_port_t *portp, int type);
113 void vsw_publish_macaddr(vsw_t *vswp, vsw_port_t *portp);
114 void vsw_port_mac_reconfig(vsw_port_t *portp, boolean_t update_vlans,
116 void vsw_mac_port_reconfig_vlans(vsw_port_t *portp, uint16_t new_pvid,
127 extern void vsw_hio_stop_port(vsw_port_t *portp);
128 extern void vsw_hio_port_reset(vsw_port_t *portp, boolean_t immediate);
384 vsw_mac_multicast_add_all(vsw_t *vswp, vsw_port_t *portp, int type) in vsw_mac_multicast_add_all() argument
398 ASSERT(RW_WRITE_HELD(&portp->maccl_rwlock)); in vsw_mac_multicast_add_all()
399 mch = portp->p_mch; in vsw_mac_multicast_add_all()
400 mcap = portp->mcap; in vsw_mac_multicast_add_all()
401 mca_lockp = &portp->mca_lock; in vsw_mac_multicast_add_all()
427 vsw_mac_multicast_remove_all(vsw_t *vswp, vsw_port_t *portp, int type) in vsw_mac_multicast_remove_all() argument
440 ASSERT(RW_WRITE_HELD(&portp->maccl_rwlock)); in vsw_mac_multicast_remove_all()
441 mch = portp->p_mch; in vsw_mac_multicast_remove_all()
442 mcap = portp->mcap; in vsw_mac_multicast_remove_all()
443 mca_lockp = &portp->mca_lock; in vsw_mac_multicast_remove_all()
987 vsw_port_mac_reconfig(vsw_port_t *portp, boolean_t update_vlans, in vsw_port_mac_reconfig() argument
990 vsw_t *vswp = portp->p_vswp; in vsw_port_mac_reconfig()
999 WRITE_ENTER(&portp->maccl_rwlock); in vsw_port_mac_reconfig()
1000 vsw_mac_multicast_remove_all(vswp, portp, VSW_VNETPORT); in vsw_port_mac_reconfig()
1001 vsw_unset_hw(vswp, portp, VSW_VNETPORT); in vsw_port_mac_reconfig()
1002 vsw_maccl_close(vswp, portp, VSW_VNETPORT); in vsw_port_mac_reconfig()
1005 if (portp->nvids != 0) { in vsw_port_mac_reconfig()
1006 kmem_free(portp->vids, in vsw_port_mac_reconfig()
1007 sizeof (vsw_vlanid_t) * portp->nvids); in vsw_port_mac_reconfig()
1008 portp->vids = NULL; in vsw_port_mac_reconfig()
1009 portp->nvids = 0; in vsw_port_mac_reconfig()
1011 portp->vids = new_vids; in vsw_port_mac_reconfig()
1012 portp->nvids = new_nvids; in vsw_port_mac_reconfig()
1013 portp->pvid = new_pvid; in vsw_port_mac_reconfig()
1020 rv = vsw_maccl_open(vswp, portp, VSW_VNETPORT); in vsw_port_mac_reconfig()
1025 if (vsw_set_hw(vswp, portp, VSW_VNETPORT)) { in vsw_port_mac_reconfig()
1027 "set unicast address\n", vswp->instance, portp->p_instance); in vsw_port_mac_reconfig()
1031 vsw_mac_multicast_add_all(vswp, portp, VSW_VNETPORT); in vsw_port_mac_reconfig()
1034 RW_EXIT(&portp->maccl_rwlock); in vsw_port_mac_reconfig()
1110 vsw_mac_port_reconfig_vlans(vsw_port_t *portp, uint16_t new_pvid, in vsw_mac_port_reconfig_vlans() argument
1118 if (portp->p_hio_enabled == B_TRUE) { in vsw_mac_port_reconfig_vlans()
1119 vsw_hio_stop_port(portp); in vsw_mac_port_reconfig_vlans()
1121 vsw_port_mac_reconfig(portp, B_TRUE, new_pvid, new_vids, new_nvids); in vsw_mac_port_reconfig_vlans()
1122 if (portp->p_hio_enabled == B_TRUE) { in vsw_mac_port_reconfig_vlans()
1124 vsw_hio_port_reset(portp, B_FALSE); in vsw_mac_port_reconfig_vlans()
1198 vsw_publish_macaddr(vsw_t *vswp, vsw_port_t *portp) in vsw_publish_macaddr() argument
1216 bcopy(&portp->p_macaddr, &ehp->ether_shost, ETHERADDRL); in vsw_publish_macaddr()
1232 bcopy(&portp->p_macaddr, cp, ETHERADDRL); in vsw_publish_macaddr()
1238 bcopy(&portp->p_macaddr, cp, ETHERADDRL); in vsw_publish_macaddr()
1253 bp = vsw_tx_msg(vswp, bp, VSW_VNETPORT, portp); in vsw_publish_macaddr()