Make sure to set 'port_no' in ofp_port_mod messages.
[sliver-openvswitch.git] / lib / learning-switch.c
index f89706a..842af37 100644 (file)
@@ -326,6 +326,7 @@ process_phy_port(struct lswitch *sw, struct rconn *rconn,
             VLOG_WARN("port %d: config=%x new_config=%x",
                       ntohs(opp->port_no), config, new_config);
             opm = make_openflow(sizeof *opm, OFPT_PORT_MOD, &b);
+            opm->port_no = opp->port_no;
             memcpy(opm->hw_addr, opp->hw_addr, OFP_ETH_ALEN);
             opm->config = htonl(new_config);
             opm->mask = htonl(config ^ new_config);