No need to restart DB / OVS on changing dscp value.
[sliver-openvswitch.git] / lib / jsonrpc.c
index 4ebff10..ce5d2b4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, 2010, 2011, 2012 Nicira Networks.
+ * Copyright (c) 2009, 2010, 2011, 2012 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -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;
+    }
 }