ofproto: Adjust netdev_monitor when switching netdevs.
authorBen Pfaff <blp@nicira.com>
Thu, 21 Apr 2011 23:25:41 +0000 (16:25 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 12 May 2011 16:27:15 +0000 (09:27 -0700)
commit380e7027848836e4024ef5e8232ef27bcad9451f
treedf6b93be8c241d80597ce33a7e9dea2f111db68e
parent83a2529a3fd51b626bb44b31eab0fa2a65769e74
ofproto: Adjust netdev_monitor when switching netdevs.

This fixes a segfault in the "ofproto - mod-port" test.  The segfault
should not occur--there must be a bug in the netdev_monitor or possibly
the netdev_dummy implementation--but the netdev_monitor_remove() and
netdev_monitor_add() calls are definitely wanted here in any case to ensure
that the new netdev, not the old one, is what gets monitored.
ofproto/ofproto.c