git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a6159a2
)
ofproto: Get rid of send_port_status() trivial wrapper function.
author
Ben Pfaff
<blp@nicira.com>
Tue, 15 Mar 2011 23:51:46 +0000
(16:51 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 30 Mar 2011 18:33:18 +0000
(11:33 -0700)
ofproto/ofproto.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index
ce8c99b
..
dc5c915
100644
(file)
--- a/
ofproto/ofproto.c
+++ b/
ofproto/ofproto.c
@@
-1123,13
+1123,6
@@
ofport_equal(const struct ofport *a_, const struct ofport *b_)
&& a->peer == b->peer);
}
&& a->peer == b->peer);
}
-static void
-send_port_status(struct ofproto *p, const struct ofport *ofport,
- uint8_t reason)
-{
- connmgr_send_port_status(p->connmgr, &ofport->opp, reason);
-}
-
static void
ofport_install(struct ofproto *p, struct ofport *ofport)
{
static void
ofport_install(struct ofproto *p, struct ofport *ofport)
{
@@
-1269,10
+1262,11
@@
update_port(struct ofproto *p, const char *devname)
if (new_ofport) {
ofport_install(p, new_ofport);
}
if (new_ofport) {
ofport_install(p, new_ofport);
}
- send_port_status(p, new_ofport ? new_ofport : old_ofport,
- (!old_ofport ? OFPPR_ADD
- : !new_ofport ? OFPPR_DELETE
- : OFPPR_MODIFY));
+ connmgr_send_port_status(p->connmgr,
+ new_ofport ? &new_ofport->opp : &old_ofport->opp,
+ (!old_ofport ? OFPPR_ADD
+ : !new_ofport ? OFPPR_DELETE
+ : OFPPR_MODIFY));
ofport_free(old_ofport);
exit:
ofport_free(old_ofport);
exit: