Lines Matching defs:cport
1104 lacp_sel_ports_t *cport;
1108 for (cport = sel_ports; cport != NULL; cport = cport->sp_next) {
1111 if (cport->sp_grp_linkid == grp->lg_linkid)
1114 if ((ether_cmp(&cport->sp_partner_system,
1116 (cport->sp_partner_key == grp->aggr.PartnerOperAggrKey)) {
1118 struct ether_addr *mac = &cport->sp_partner_system;
1138 cport->sp_grp_linkid, cport->sp_linkid);
1144 return (cport != NULL);
1153 lacp_sel_ports_t *cport, **prev = NULL;
1158 for (cport = sel_ports; cport != NULL; prev = &cport->sp_next,
1159 cport = cport->sp_next) {
1160 if (portp->lp_linkid == cport->sp_linkid)
1164 if (cport == NULL) {
1169 *prev = cport->sp_next;
1170 kmem_free(cport, sizeof (*cport));
1184 lacp_sel_ports_t *cport, **last;
1190 for (cport = sel_ports; cport != NULL;
1191 last = &cport->sp_next, cport = cport->sp_next) {
1192 if (portp->lp_linkid == cport->sp_linkid) {
1193 ASSERT(cport->sp_partner_key ==
1195 ASSERT(ether_cmp(&cport->sp_partner_system,