[ovs-dev] [PATCH v2 0/5] dynamic change of DSCP for passive method

Isaku Yamahata yamahata at valinux.co.jp
Wed Sep 26 07:12:04 UTC 2012


When dynamic DSCP change is introduced, passive method (ptcp, pssl) case
was't addressed. The result is that servers (ovsdb-server/vswitchd)
disconnect accepted sockets. Which means ovsdb-client/ovs-vsctl doesn't
work for remote vswitch as below.

> # ovs-vsctl set-manager ptcp:6634
> # ovsdb-client get-schema tcp:127.0.0.1:6634
> 2012-09-14T05:38:26Z|00001|jsonrpc|WARN|tcp:127.0.0.1:6634: receive error: Connection reset by peer
> ovsdb-client: transaction failed (Connection reset by peer)

This patch series addresses passive method case with DSCP dynamic change and
resolves disconnection issues.

Isaku Yamahata (5):
  stream-provider: remove stale declaration of stream_set_dscp()
  lib/socket-util: export set_dscp()
  ovsdb: initialize struct ovsdb_jsonrpc_options::dscp uniformly
  lib/pstream: add set_dscp method
  ovsdb/jsonrpc-server: ovsdb-server closes accepted connections
    immediately

 lib/jsonrpc.c          |   17 ++++++++++++++-
 lib/jsonrpc.h          |    3 +-
 lib/socket-util.c      |    2 +-
 lib/socket-util.h      |    1 +
 lib/stream-fd.c        |   16 ++++++++++++++-
 lib/stream-fd.h        |    1 +
 lib/stream-provider.h  |    4 ++-
 lib/stream-ssl.c       |    8 +++++++
 lib/stream-tcp.c       |    6 +++-
 lib/stream-unix.c      |    5 ++-
 lib/stream.c           |    8 +++++++
 lib/stream.h           |    1 +
 ovsdb/jsonrpc-server.c |   21 +++++++++++++++++++-
 ovsdb/ovsdb-server.c   |    1 -
 tests/ovsdb-server.at  |   49 ++++++++++++++++++++++++++++++++++++++++++++++++
 15 files changed, 131 insertions(+), 12 deletions(-)




More information about the dev mailing list