X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fbridge.c;h=f739505e3ec06c3b2be31e560511805754f10f53;hb=e468fe85d5a83fe1c5985100ec330708a318ba9f;hp=1328c2dbe58d6e4153d00e176f96d315ec441380;hpb=0c62a7ad88bb1f2eacfa225b9812dc10ba7b6eb2;p=openvswitch diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 1328c2db..f739505e 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -173,7 +173,6 @@ struct port { bool is_mirror_output_port; /* Does port mirroring send frames here? */ }; -#define DP_MAX_PORTS 255 struct bridge { struct list node; /* Node in global list of bridges. */ char *name; /* User-specified arbitrary name. */ @@ -318,6 +317,17 @@ bridge_init(const char *remote) bond_init(); } +void +bridge_exit(void) +{ + struct bridge *br, *next_br; + + LIST_FOR_EACH_SAFE (br, next_br, node, &all_bridges) { + bridge_destroy(br); + } + ovsdb_idl_destroy(idl); +} + /* Performs configuration that is only necessary once at ovs-vswitchd startup, * but for which the ovs-vswitchd configuration 'cfg' is required. */ static void