Lines Matching refs:lowerlink

143 	struct dpif_solaris_lowerlink *lowerlink;
182 struct dpif_solaris_lowerlink *lowerlink);
410 struct dpif_solaris_lowerlink *lowerlink;
469 HMAP_FOR_EACH(lowerlink, node, &dpif->lowerlinks) {
471 "kstat:/net/link/%s/%d", lowerlink->physname, 0);
591 struct dpif_solaris_lowerlink *lowerlink;
594 HMAP_FOR_EACH(lowerlink, node, &dpif->lowerlinks) {
595 for (i = 0; i < lowerlink->n_handlers; i++) {
596 ovs_assert(lowerlink->handlers != NULL);
597 ovs_assert(lowerlink->handlers[i].upcall_fd != -1);
598 if (lowerlink->handlers[i].pf_port_no == pf_port_no)
613 struct dpif_solaris_lowerlink *lowerlink, int n)
625 ovs_assert(lowerlink->handlers != NULL);
626 ovs_assert(lowerlink->handlers[i].upcall_fd != -1);
627 if (lowerlink->handlers[i].pf_port_no == pf_port_no)
2324 struct dpif_solaris_lowerlink *lowerlink)
2329 VLOG_DBG("dpif_solaris_destroy_lowerlink %s", lowerlink->physname);
2330 ovs_assert(lowerlink->nports == 0);
2331 hmap_remove(&dpif->lowerlinks, &lowerlink->node);
2332 for (i = 0; i < lowerlink->n_handlers; i++) {
2333 ovs_assert(lowerlink->handlers != NULL);
2334 if (lowerlink->handlers[i].upcall_fd != -1)
2335 (void) close(lowerlink->handlers[i].upcall_fd);
2337 if (lowerlink->handlers != NULL)
2338 free(lowerlink->handlers);
2339 free(lowerlink);
2346 struct dpif_solaris_lowerlink *lowerlink;
2359 lowerlink = port->lowerlink;
2360 port->lowerlink = NULL;
2362 if (--lowerlink->nports == 0)
2363 dpif_solaris_destroy_lowerlink(dpif, lowerlink);
2395 struct dpif_solaris_lowerlink *lowerlink;
2410 HMAP_FOR_EACH(lowerlink, node, &dpif->lowerlinks) {
2411 if (strcmp(lowerlink->physname, port->physname) == 0) {
2420 &lowerlink);
2422 VLOG_DBG("dpif_solaris_refresh_port_channel lowerlink "
2430 (lowerlink->next_idx % lowerlink->n_handlers);
2431 fd = lowerlink->handlers[idx].upcall_fd;
2432 pf_port_no = lowerlink->handlers[idx].pf_port_no;
2446 dpif_solaris_destroy_lowerlink(dpif, lowerlink);
2450 lowerlink->next_idx ++;
2451 lowerlink->nports ++;
2452 port->lowerlink = lowerlink;
2554 struct dpif_solaris_lowerlink *lowerlink;
2564 lowerlink = xzalloc(sizeof (*lowerlink));
2565 if (strlcpy(lowerlink->physname, physname,
2566 sizeof (lowerlink->physname)) >= sizeof (lowerlink->physname)) {
2567 free(lowerlink);
2571 lowerlink->n_handlers = dpif->n_handlers;
2572 lowerlink->handlers = xzalloc(lowerlink->n_handlers *
2574 lowerlink->nports = 0;
2575 lowerlink->next_idx = 0;
2577 for (i = 0; i < lowerlink->n_handlers; i++)
2578 lowerlink->handlers[i].upcall_fd = -1;
2580 for (i = 0; i < lowerlink->n_handlers; i++) {
2582 lowerlink->physname, &(lowerlink->handlers[i].upcall_fd));
2585 "upfd over %s failed %s", i, lowerlink->physname,
2590 "upfd over %s: %d", i, lowerlink->physname,
2591 lowerlink->handlers[i].upcall_fd);
2594 choose_pf_port(dpif, lowerlink, i);
2598 lowerlink->physname);
2604 lowerlink->physname, pf_port_no);
2606 lowerlink->handlers[i].pf_port_no = pf_port_no;
2608 hmap_insert(&dpif->lowerlinks, &lowerlink->node,
2609 hash_string(lowerlink->physname, 0));
2611 *lowerlinkp = lowerlink;
2615 dpif_solaris_destroy_lowerlink(dpif, lowerlink);
2798 struct dpif_solaris_lowerlink *lowerlink;
2811 HMAP_FOR_EACH(lowerlink, node, &dpif->lowerlinks) {
2812 for (i = 0; i < lowerlink->n_handlers; i++) {
2813 if ((fd = lowerlink->handlers[i].upcall_fd) == -1)
2858 lowerlink->physname, fd, pktlen,
2867 lowerlink->physname, fd, pktlen);
2873 lowerlink->physname, fd, pktlen,
2898 "failed %d", lowerlink->physname,
2933 struct dpif_solaris_lowerlink *lowerlink;
2942 HMAP_FOR_EACH(lowerlink, node, &dpif->lowerlinks) {
2943 for (i = 0; i < lowerlink->n_handlers; i++) {
2944 if ((fd = lowerlink->handlers[i].upcall_fd) != -1) {
2958 struct dpif_solaris_lowerlink *lowerlink;
2966 HMAP_FOR_EACH(lowerlink, node, &dpif->lowerlinks) {
2967 for (i = 0; i < lowerlink->n_handlers; i++) {
2968 if ((fd = lowerlink->handlers[i].upcall_fd) != -1) {