summaryrefslogtreecommitdiff
path: root/ofproto/ofproto-provider.h
diff options
context:
space:
mode:
authorAndy Zhou <azhou@ovn.org>2017-04-24 18:55:04 -0700
committerAndy Zhou <azhou@ovn.org>2017-05-03 13:12:03 -0700
commitfe13ccdca6a223eec605041f77acfabd21e1fcb2 (patch)
tree81f886e8130cf26fefc4ded2d4d5f06e8b29ad72 /ofproto/ofproto-provider.h
parent401b70d632729555b555040e4cee13a5ffc5ed3d (diff)
downloadopenvswitch-fe13ccdca6a223eec605041f77acfabd21e1fcb2.tar.gz
vswitchd: Add --cleanup option to the 'appctl exit' command
'appctl exit' stops the running vswitchd daemon, without releasing the datapath resources (such as bridges and ports) that vswitchd has created. This is expected when vswitchd is to be relaunched, to reduce the perturbation of exiting traffic and connections. However, when vswitchd is intended to be shutdown permanently, it is desirable not to leak datapath resources. In theory, this can be achieved by removing the corresponding configurations from OVSDB before shutting down vswitchd. However it is not always possible in practice. Sometimes it is convenient and robust for vswitchd to release all datapath resources that it has configured. Add 'appctl exit --cleanup' option for this use case. Signed-off-by: Andy Zhou <azhou@ovn.org> Acked-by: Jarno Rajahalme <jarno@ovn.org>
Diffstat (limited to 'ofproto/ofproto-provider.h')
-rw-r--r--ofproto/ofproto-provider.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/ofproto-provider.h b/ofproto/ofproto-provider.h
index 688a9e5d3..9dc73c482 100644
--- a/ofproto/ofproto-provider.h
+++ b/ofproto/ofproto-provider.h
@@ -829,7 +829,7 @@ struct ofproto_class {
*/
struct ofproto *(*alloc)(void);
int (*construct)(struct ofproto *ofproto);
- void (*destruct)(struct ofproto *ofproto);
+ void (*destruct)(struct ofproto *ofproto, bool del);
void (*dealloc)(struct ofproto *ofproto);
/* Performs any periodic activity required by 'ofproto'. It should: