diff options
author | Mehak Mahajan <mmahajan@nicira.com> | 2012-06-07 16:57:56 -0700 |
---|---|---|
committer | Mehak Mahajan <mmahajan@nicira.com> | 2012-06-09 09:27:53 -0700 |
commit | b2e18db292cd4962af3248f11e9f17e6eaf9c033 (patch) | |
tree | 022d994054f8722efb426303304bfe8edcdd2bb8 /lib/jsonrpc.c | |
parent | 54748397eca5809551ace2ea1d1e3f7cc9e1ee02 (diff) |
No need to restart DB / OVS on changing dscp value.
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>
Diffstat (limited to 'lib/jsonrpc.c')
-rw-r--r-- | lib/jsonrpc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c index 5c3359cb..ce5d2b4b 100644 --- a/lib/jsonrpc.c +++ b/lib/jsonrpc.c @@ -1058,5 +1058,8 @@ void jsonrpc_session_set_dscp(struct jsonrpc_session *s, uint8_t dscp) { - s->dscp = dscp; + if (s->dscp != dscp) { + jsonrpc_session_force_reconnect(s); + s->dscp = dscp; + } } |