diff options
| author | Ethan Jackson <ethan@nicira.com> | 2011-09-15 15:27:22 -0700 |
|---|---|---|
| committer | Ethan Jackson <ethan@nicira.com> | 2011-09-15 15:40:54 -0700 |
| commit | 8c977421e48b18398137bcbbf447e372ac61b6a6 (patch) | |
| tree | 63aeaeb033d6de7c751f152ac1172e4b3d06ac89 /ofproto | |
| parent | 8007bb2d9e26d08d0cb8c5318d3a33db55b38bcf (diff) | |
| download | openvswitch-8c977421e48b18398137bcbbf447e372ac61b6a6.tar.gz | |
ofproto-dpif: Revalidate on cfm and lacp addition.
The introduction of cfm or lacp objects to ofproto, requires the
removal of all flows which originate from the newly "special"
in_port.
Diffstat (limited to 'ofproto')
| -rw-r--r-- | ofproto/ofproto-dpif.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 88ec2c0a5..98bcc7470 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -836,6 +836,10 @@ set_cfm(struct ofport *ofport_, const struct cfm_settings *s) error = 0; } else { if (!ofport->cfm) { + struct ofproto_dpif *ofproto; + + ofproto = ofproto_dpif_cast(ofport->up.ofproto); + ofproto->need_revalidate = true; ofport->cfm = cfm_create(netdev_get_name(ofport->up.netdev)); } @@ -1069,6 +1073,7 @@ bundle_set(struct ofproto *ofproto_, void *aux, /* LACP. */ if (s->lacp) { if (!bundle->lacp) { + ofproto->need_revalidate = true; bundle->lacp = lacp_create(); } lacp_configure(bundle->lacp, s->lacp); |
