[Spice-devel] [PATCH 00/24] refactor of RedChannel for RedWorker

Alon Levy alevy at redhat.com
Wed Jan 19 10:07:46 PST 2011


This patchset contains changes to RedChannel API introduced to
make later reuse of RedChannel in RedWorker easier. They are actually
a part of a much larger patchset, too large to send to the list (92 -
is that too large?). The tree with the complete set of patches is at

 http://cgit.freedesktop.org/~alon/spice/log/?h=red_channel_refactor

I've done minimal tests with these patches (switch host migration works,
 all the patches compile with --enable-smartcard).

Please review,

Alon Levy (24):
  server/red_channel: add out_bytes_counter (unused)
  server/red_channel: add hold_item (from red_worker)
  server/red_channel: add red_channel_pipe_add_push
  server/red_channel: reflect SpiceDataHeader fields in
    handle_parsed_proc
  server/red_channel: make MAX_SEND_VEC 100
  server/red_channel (tunnel): change sig of red_channel_handle_message
  server/red_channel: make client ack window configurable
  server/red_channel: add red_channel_pipe_add_after (from red_worker)
  server/red_channel: add public red_channel_default_peer_on_error
  server/red_channel: two 80 column fixes
  server/red_channel: unstatic red_channel_push (for red_worker)
  server/red_channel: unstatic red_channel_pipe_clear (for red_worker)
  server/red_channel: add red_channel_receive (for red_worker)
  server/red_channel: add empty handle of SPICE_MSGC_DISCONNECTING
  server/red_channel: use red_channel_receive
  server/red_channel: red_channel_event: push on blocked
  server/red_channel: reset pipe_size on clear (from red_worker)
  server/red_channel: protect red_channel_push from NULL
  server/red_channel: red_channel_pipe_get: enforce ack window
  server/red_channel: export red_channel_send
  server/red_channel: add TODO
  server/red_channel: don't set blocked when ack window full
  server/red_channel: red_channel_pipe_clear: assert on NULL channel
  server/red_channel: style fix in red_channel_init_send_data

 server/inputs_channel.c    |   15 ++++--
 server/main_channel.c      |   35 ++++++++------
 server/red_channel.c       |  104 +++++++++++++++++++++++++++++++++-----------
 server/red_channel.h       |   42 ++++++++++++++++--
 server/red_tunnel_worker.c |    9 +++-
 server/smartcard.c         |   15 ++++--
 6 files changed, 163 insertions(+), 57 deletions(-)

-- 
1.7.3.4



More information about the Spice-devel mailing list