From: Mehak Mahajan Date: Wed, 20 Jun 2012 03:13:19 +0000 (-0700) Subject: jsonrpc: Correctly setting the dscp value before reconnect. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd8fca2ba0a7d036da069a4484d501bdc7a6f611;p=openvswitch jsonrpc: Correctly setting the dscp value before reconnect. 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 Reported-by: Ravi Kerur --- diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c index ce5d2b4b..4870da84 100644 --- a/lib/jsonrpc.c +++ b/lib/jsonrpc.c @@ -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); } }