jsonrpc: Correctly setting the dscp value before reconnect.
authorMehak Mahajan <mmahajan@nicira.com>
Wed, 20 Jun 2012 03:13:19 +0000 (20:13 -0700)
committerMehak Mahajan <mmahajan@nicira.com>
Wed, 20 Jun 2012 03:13:19 +0000 (20:13 -0700)
In commit b2e18d(No need to restart DB / OVS on changing dscp value.), the
dscp value was wrongly set after the reconnect.

Signed-off-by: Mehak Mahajan <mmahajan@nicira.com>
Reported-by: Ravi Kerur <rkerur@gmail.com>
lib/jsonrpc.c

index ce5d2b4b627fddbe19b8ae44e3c0b54318737f25..4870da842627b94f05919919d410f7f6360d0847 100644 (file)
@@ -1059,7 +1059,7 @@ jsonrpc_session_set_dscp(struct jsonrpc_session *s,
                          uint8_t dscp)
 {
     if (s->dscp != dscp) {
-        jsonrpc_session_force_reconnect(s);
         s->dscp = dscp;
+        jsonrpc_session_force_reconnect(s);
     }
 }