VSW_VNETPORT
} else if (type == VSW_VNETPORT) {
vsw_vlan_read_ids(portp, VSW_VNETPORT, mdp, *node, &portp->pvid,
vsw_vlan_read_ids(portp, VSW_VNETPORT, curr_mdp, curr_mdex, &pvid,
vsw_vlan_remove_ids(portp, VSW_VNETPORT);
vsw_vlan_add_ids(portp, VSW_VNETPORT);
vsw_update_bandwidth(NULL, portp, VSW_VNETPORT, maxbw);
(void) vsw_vlan_frame_pretag(ldcp->ldc_port, VSW_VNETPORT, mp);
vswp->vsw_switch_frame(vswp, mp, VSW_VNETPORT, ldcp->ldc_port, NULL);
(void) vsw_vlan_frame_pretag(ldcp->ldc_port, VSW_VNETPORT, mp);
vswp->vsw_switch_frame(vswp, mp, VSW_VNETPORT,
rv = vsw_mac_client_init(vswp, port, VSW_VNETPORT);
count = vsw_vlan_frame_untag(port, VSW_VNETPORT, &mp, &mpt);
vsw_create_vlans(port, VSW_VNETPORT);
if (devtype == VSW_VNETPORT) {
if (devtype == VSW_VNETPORT)
if (devtype == VSW_VNETPORT)
vsw_mac_client_cleanup(vswp, port, VSW_VNETPORT);
vsw_destroy_vlans(port, VSW_VNETPORT);
vsw_mac_client_cleanup(vswp, port, VSW_VNETPORT);
vsw_destroy_vlans(port, VSW_VNETPORT);
vsw_mac_multicast_remove_all(vswp, portp, VSW_VNETPORT);
vsw_unset_hw(vswp, portp, VSW_VNETPORT);
vsw_maccl_close(vswp, portp, VSW_VNETPORT);
rv = vsw_maccl_open(vswp, portp, VSW_VNETPORT);
if (vsw_set_hw(vswp, portp, VSW_VNETPORT)) {
vsw_mac_multicast_add_all(vswp, portp, VSW_VNETPORT);
bp = vsw_tx_msg(vswp, bp, VSW_VNETPORT, portp);
ASSERT((type == VSW_LOCALDEV) || (type == VSW_VNETPORT));
if (type == VSW_VNETPORT) {
if (type == VSW_VNETPORT) {
rv = vsw_mac_client_init(vswp, port, VSW_VNETPORT);
ASSERT((type == VSW_LOCALDEV) || (type == VSW_VNETPORT));
ASSERT((type == VSW_LOCALDEV) || (type == VSW_VNETPORT));
ASSERT((type == VSW_LOCALDEV) || (type == VSW_VNETPORT));
if (type == VSW_VNETPORT) {
if (type != VSW_VNETPORT || !port->p_hio_enabled)
ASSERT((type == VSW_LOCALDEV) || (type == VSW_VNETPORT));
vsw_mac_client_cleanup(vswp, port, VSW_VNETPORT);
ASSERT((type == VSW_LOCALDEV) || (type == VSW_VNETPORT));
if (type == VSW_VNETPORT) {
ASSERT((type == VSW_LOCALDEV) || (type == VSW_VNETPORT));
if (type == VSW_VNETPORT) {
vsw_maccl_set_bandwidth(NULL, port, VSW_VNETPORT, port->p_bandwidth);
ASSERT((type == VSW_LOCALDEV) || (type == VSW_VNETPORT));
if (type == VSW_VNETPORT) {
} else if (type == VSW_VNETPORT) {
} else if ((type == VSW_VNETPORT) && (port->addr_set == B_TRUE)) {
(vswp)->vsw_switch_frame((vswp), (bp), VSW_VNETPORT, \
} else if (type == VSW_VNETPORT) {
} else if (type == VSW_VNETPORT) {
ASSERT((type == VSW_LOCALDEV) || (type == VSW_VNETPORT));
ASSERT((type == VSW_LOCALDEV) || (type == VSW_VNETPORT));
case VSW_VNETPORT:
if (vsw_add_mcst(vswp, VSW_VNETPORT, addr, port) == 0) {
VSW_VNETPORT, addr, port);
VSW_VNETPORT)) {
VSW_VNETPORT, addr, port);
if (vsw_del_mcst(vswp, VSW_VNETPORT, addr, port) == 0) {
mcst_p = vsw_del_addr(VSW_VNETPORT, port, addr);
VSW_VNETPORT);
if (devtype == VSW_VNETPORT) {
if (devtype == VSW_VNETPORT) {
if (devtype == VSW_VNETPORT) {
if (devtype == VSW_VNETPORT) {
(void) vsw_del_mcst(vswp, VSW_VNETPORT,
vsw_mac_multicast_remove(vswp, port, mcap, VSW_VNETPORT);
ASSERT((caller == VSW_VNETPORT) || (caller == VSW_LOCALDEV));
if (caller == VSW_VNETPORT) {
if ((caller != VSW_LOCALDEV) && (caller != VSW_VNETPORT)) {
if (caller == VSW_VNETPORT) {
((caller == VSW_LOCALDEV) || (caller == VSW_VNETPORT))) {
if (caller == VSW_VNETPORT)
if ((caller == VSW_PHYSDEV) || (caller == VSW_VNETPORT)) {
((caller == VSW_VNETPORT) || (caller == VSW_LOCALDEV))) {
if ((caller == VSW_VNETPORT) &&
if (tpp->d_type == VSW_VNETPORT) {
((caller == VSW_VNETPORT) || (caller == VSW_PHYSDEV))) {
} else if (type == VSW_VNETPORT) {
} else if (type == VSW_VNETPORT) {
VSW_VNETPORT, mp);
vswp->vsw_switch_frame(vswp, bp, VSW_VNETPORT,