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