From: Ethan Jackson Date: Wed, 19 Jun 2013 01:03:32 +0000 (-0700) Subject: ofproto-dpif: Reconfigure when netflow is enabled/disabled. X-Git-Tag: sliver-openvswitch-1.10.90-3~6^2~92 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7bab1576309d18850d9cb07a3397476010831513;p=sliver-openvswitch.git ofproto-dpif: Reconfigure when netflow is enabled/disabled. The presence or absence of netflow affects wildcarding, and therefore need to cause a revalidation when changed. Found by inspection. Signed-off-by: Ethan Jackson Acked-by: Ben Pfaff --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 1b3b1e3bb..52d22774d 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -5614,13 +5614,16 @@ set_netflow(struct ofproto *ofproto_, if (netflow_options) { if (!ofproto->netflow) { ofproto->netflow = netflow_create(); + ofproto->backer->need_revalidate = REV_RECONFIGURE; } return netflow_set_options(ofproto->netflow, netflow_options); - } else { + } else if (ofproto->netflow) { + ofproto->backer->need_revalidate = REV_RECONFIGURE; netflow_destroy(ofproto->netflow); ofproto->netflow = NULL; - return 0; } + + return 0; } static void