Lines Matching defs:port_no
128 odp_port_t port_no; /* OF port no of this port */
172 odp_port_t port_no, struct dpif_solaris_port **portp);
175 odp_port_t port_no, odp_port_t *uport_nop, int *xfdp,
545 VLOG_DBG("dpif_solaris_create_xsocket %d on %s port_no: %d", fd,
546 port->name, port->port_no);
560 uint32_t port_no;
563 for (port_no = PORT_PF_PACKET_UPLINK + 1;
564 port_no < MAC_OF_MAXPORT; port_no++) {
565 chk_bit = dp_ports_bitvector[port_no >> MAC_OFPORT_ARRAY_SHIFT];
566 if ((chk_bit & (1LL << (port_no & MAC_OFPORT_ARRAY_MASK))) > 0)
569 dp_ports_bitvector[port_no >> MAC_OFPORT_ARRAY_SHIFT] |=
570 (1LL << (port_no & MAC_OFPORT_ARRAY_MASK));
572 VLOG_DBG("dpif_solaris_choose_port: port no: %d", port_no);
573 return (u32_to_odp(port_no));
580 reset_port(uint32_t port_no)
583 dp_ports_bitvector[port_no >> MAC_OFPORT_ARRAY_SHIFT] &=
584 ~(1LL << (port_no & MAC_OFPORT_ARRAY_MASK));
666 port->port_no, physname);
693 hash_odp_port(port->port_no));
695 "bridge %s", port->name, port->port_no, brname);
716 "to a bridge", port->port_no);
720 port->port_no, bridge->name);
777 VLOG_DBG("dpif_solaris_port_add %s (%s) type %s port_no %d vtype %d",
836 port->port_no = *port_nop;
870 hmap_insert(&dpif->ports, &port->node, hash_odp_port(port->port_no));
915 dpif_solaris_get_port_by_number(struct dpif_solaris *dpif, odp_port_t port_no,
921 if (port_no == ODPP_NONE) {
927 hash_odp_port(port_no), &dpif->ports) {
928 if (port->port_no == port_no) {
940 odp_port_t port_no, odp_port_t *uport_nop, int *xfdp,
947 if (port->port_no == port_no)
960 *uport_nop = uport->port_no;
979 port->port_no);
1000 reset_port(port->port_no);
1010 dpif_solaris_port_del(struct dpif *dpif_, odp_port_t port_no)
1016 VLOG_DBG("dpif_solaris_port_del port # %d", port_no);
1018 if (port_no == ODPP_LOCAL) {
1019 VLOG_ERR("dpif_solaris_port_del invalid port # %d", port_no);
1024 error = dpif_solaris_get_port_by_number(dpif, port_no, &port);
1027 VLOG_ERR("dpif_solaris_port_del port # %d failed %d", port_no,
1037 dpif_solaris_port_query_by_number(const struct dpif *dpif_, odp_port_t port_no,
1045 error = dpif_solaris_get_port_by_number(dpif, port_no, &port);
1050 dpif_port->port_no = port->port_no;
1068 dpif_port->port_no = port->port_no;
1095 port->port_no = portno;
1097 hmap_insert(&state->ports, &port->node, hash_odp_port(port->port_no));
1133 dpif_port->port_no = port->port_no;
1968 dpif_solaris_port_output(struct dpif_solaris *dpif, odp_port_t port_no,
1982 VLOG_DBG("dpif_solaris_port_output %d tunnel %ld", port_no,
1985 error = dpif_solaris_get_uplink_port_info(dpif, port_no, NULL,
2009 auxdata.tp_of_port = port_no;
2035 buflen, port_no, error == 0 ? "succeed" :
2185 odp_port_t port_no;
2187 port_no = u32_to_odp(nl_attr_get_u32(a));
2190 "%d: inport is %d", port_no, md->in_port.odp_port);
2214 err = dpif_solaris_get_uplink_port_info(dpif, port_no,
2221 port_no);
2236 md->in_port.odp_port, port_no);
2242 if (md->tunnel.ip_dst && (port_no == pout))
2244 (void) dpif_solaris_port_output(dpif, port_no, packet, tnl,
2355 PACKET_REM_OF_DEFFLOW, &port->port_no, sizeof (uint32_t));
2406 VLOG_DBG("dpif_solaris_refresh_port_channel(%s) port_no %d on %s%s",
2407 port->linkname, port->port_no, port->physname,
2434 VLOG_DBG("dpif_solaris_refresh_port_channel(%s) port_no %d pf_port_no "
2435 "%d upcall_fd %d", port->linkname, port->port_no, pf_port_no, fd);
2438 mofport.mop_sport = port->port_no;
2457 if (notify && write(dpif->event_wfd, (char *)(&port->port_no),
2597 "port_no avaiable for %dth upfd over %s", i,
2631 odp_port_t port_no = 0;
2678 if (write(dpif->event_wfd, (char *)&port_no, sizeof (odp_port_t)) < 0) {
2799 odp_port_t port_no;
2807 (void) read(dpif->event_rfd, (char *)&port_no,
2848 port_no = aux.tp_of_port;
2863 if (port_no == 0) {
2866 "port_no 0",
2875 "miss_pkt" : "fwd_controller", port_no);
2878 md = PKT_METADATA_INITIALIZER(port_no);