Reapplying the dscp changes: No need to restart DB/OVS on changing dscp value.
authorMehak Mahajan <mmahajan@nicira.com>
Thu, 21 Jun 2012 19:22:42 +0000 (12:22 -0700)
committerMehak Mahajan <mmahajan@nicira.com>
Thu, 21 Jun 2012 19:22:42 +0000 (12:22 -0700)
commit0442efd9b1a88d923b56eab6b72b6be8231a49f7
tree33698e4fa4e975179fe58852ad6e974e91f5c17c
parentbed69b3e61de1728e731bcefca2370de52c30d14
Reapplying the dscp changes: No need to restart DB/OVS on changing dscp value.

This patch reapplies the changes that were reverted with the commit 59efa47
(Revert DSCP update changes.). It also addresses the problem introduced by
the original commits, cd8fca2 ((jsonrpc: Correctly setting the dscp value
before reconnect.) and b2e18d (No need to restart DB / OVS on changing
dscp value.), that caused numerous unit test failures on some systems (as
diagnosed by valgrind).
With this change there is no need to restart the DB or OVS on configuring a
different value for the manager or controller connection respectively. On
detecting a change in the dscp value on the socket, the previous socket is
closed and a new socket is created and connection is established with the new
configured dscp value.

Signed-off-by: Mehak Mahajan <mmahajan@nicira.com>
lib/jsonrpc.c
lib/rconn.c
lib/rconn.h
ofproto/connmgr.c
vswitchd/vswitch.xml