Lines Matching defs:portp

94 static	void vsw_port_read_bandwidth(vsw_port_t *portp, md_t *mdp,
96 static int vsw_port_read_props(vsw_port_t *portp, vsw_t *vswp,
156 extern void vsw_vlan_unaware_port_reset(vsw_port_t *portp);
162 extern void vsw_hio_port_update(vsw_port_t *portp, boolean_t hio_enabled);
165 extern void vsw_mac_port_reconfig_vlans(vsw_port_t *portp, uint16_t new_pvid,
172 extern void vsw_port_reset(vsw_port_t *portp);
1819 vsw_port_t *portp;
1840 portp = (vsw_port_t *)arg;
1841 vswp = portp->p_vswp;
1844 inst = portp->p_instance;
1901 vsw_port_read_bandwidth(vsw_port_t *portp, md_t *mdp, mde_cookie_t node,
1908 vswp = portp->p_vswp;
2451 vsw_port_read_props(vsw_port_t *portp, vsw_t *vswp,
2533 portp->p_vswp = vswp;
2534 portp->p_instance = inst;
2535 portp->addr_set = B_FALSE;
2536 ether_copy(&ea, &portp->p_macaddr);
2542 portp->num_ldcs = nchan;
2543 portp->ldc_ids =
2545 bcopy(&ldc_id, (portp->ldc_ids), sizeof (uint64_t) * nchan);
2548 vsw_vlan_read_ids(portp, VSW_VNETPORT, mdp, *node, &portp->pvid,
2549 &portp->vids, &portp->nvids, NULL);
2554 portp->p_hio_enabled = B_TRUE;
2556 portp->p_hio_enabled = B_FALSE;
2562 portp->p_hio_capable = B_FALSE;
2565 vsw_port_read_bandwidth(portp, mdp, *node, &portp->p_bandwidth);
2578 vsw_port_t *portp;
2581 portp = kmem_zalloc(sizeof (vsw_port_t), KM_SLEEP);
2583 rv = vsw_port_read_props(portp, vswp, mdp, node);
2585 kmem_free(portp, sizeof (*portp));
2589 rv = vsw_port_attach(portp);
2605 vsw_port_t *portp;
2637 portp = vsw_lookup_port(vswp, cport_num);
2638 if (portp == NULL) {
2644 vsw_vlan_read_ids(portp, VSW_VNETPORT, curr_mdp, curr_mdex, &pvid,
2648 if ((pvid != portp->pvid) || /* pvid changed? */
2649 (nvids != portp->nvids) || /* # of vids changed? */
2650 ((nvids != 0) && (portp->nvids != 0) && /* vids changed? */
2651 !vsw_cmp_vids(vids, portp->vids, nvids))) {
2661 if (portp->p_hio_enabled != hio_enabled) {
2666 vsw_port_read_bandwidth(portp, curr_mdp, curr_mdex, &maxbw);
2667 if (maxbw != portp->p_bandwidth) {
2674 vswp->instance, portp->p_instance, maxbw);
2680 vsw_vlan_remove_ids(portp, VSW_VNETPORT);
2683 vsw_mac_port_reconfig_vlans(portp, pvid, vids, nvids);
2686 vsw_vlan_add_ids(portp, VSW_VNETPORT);
2689 vsw_vlan_unaware_port_reset(portp);
2693 vsw_hio_port_update(portp, hio_enabled);
2697 vsw_update_bandwidth(NULL, portp, VSW_VNETPORT, maxbw);