projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77c8eed
)
Make sure to set 'port_no' in ofp_port_mod messages.
author
Justin Pettit
<jpettit@nicira.com>
Tue, 23 Sep 2008 01:01:39 +0000
(18:01 -0700)
committer
Justin Pettit
<jpettit@nicira.com>
Tue, 23 Sep 2008 01:01:39 +0000
(18:01 -0700)
lib/learning-switch.c
patch
|
blob
|
history
diff --git
a/lib/learning-switch.c
b/lib/learning-switch.c
index f89706acdc6356bcd977c53bc8a176d5c2d2d0d5..842af37d0311e05ee456bb366ef7e809a3f8810a 100644
(file)
--- a/
lib/learning-switch.c
+++ b/
lib/learning-switch.c
@@
-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);