ofproto-dpif: Flush flows before dpif_recv_set_mask().
authorJesse Gross <jesse@nicira.com>
Fri, 16 Sep 2011 16:50:35 +0000 (09:50 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 23 Sep 2011 22:27:48 +0000 (15:27 -0700)
commitbe8194bb5935141f12339085032da5d63f856f16
treecf3cf14cf84b8ce473d44a3813162238fb6989a2
parentb063d9f06e6bb005193a219bcb9f0a74dfdf7882
ofproto-dpif: Flush flows before dpif_recv_set_mask().

Now that upcalls from the kernel use unicast sockets, we need to
tell the kernel where to send them explicitly.  This means that
when the switch is restarted it's necessary to take control of any
existing objects, which is done when the dpif listen mask becomes
non-zero.  Since we're going to blow away the flows anyways, we
might as well do it before going through the trouble of updating
all of them.
ofproto/ofproto-dpif.c