mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Let remoteClientStream only do RX if requested.
Right now, the stream stuff assumes that a stream is always going to be used for transmit. This is not the case, and in fact doesn't work with the tunnelled migration stuff. Add a flag to remoteClientStream() to allow it to do RX only. Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
47c8709564
commit
15bfedcbbd
@ -259,7 +259,8 @@ void remoteFreeClientStream(struct qemud_client *client,
|
|||||||
* @stream: a stream to add
|
* @stream: a stream to add
|
||||||
*/
|
*/
|
||||||
int remoteAddClientStream(struct qemud_client *client,
|
int remoteAddClientStream(struct qemud_client *client,
|
||||||
struct qemud_client_stream *stream)
|
struct qemud_client_stream *stream,
|
||||||
|
int transmit)
|
||||||
{
|
{
|
||||||
struct qemud_client_stream *tmp = client->streams;
|
struct qemud_client_stream *tmp = client->streams;
|
||||||
|
|
||||||
@ -280,6 +281,7 @@ int remoteAddClientStream(struct qemud_client *client,
|
|||||||
stream->filter.next = client->filters;
|
stream->filter.next = client->filters;
|
||||||
client->filters = &stream->filter;
|
client->filters = &stream->filter;
|
||||||
|
|
||||||
|
if (transmit)
|
||||||
stream->tx = 1;
|
stream->tx = 1;
|
||||||
|
|
||||||
remoteStreamUpdateEvents(stream);
|
remoteStreamUpdateEvents(stream);
|
||||||
|
@ -36,7 +36,8 @@ void remoteFreeClientStream(struct qemud_client *client,
|
|||||||
struct qemud_client_stream *stream);
|
struct qemud_client_stream *stream);
|
||||||
|
|
||||||
int remoteAddClientStream(struct qemud_client *client,
|
int remoteAddClientStream(struct qemud_client *client,
|
||||||
struct qemud_client_stream *stream);
|
struct qemud_client_stream *stream,
|
||||||
|
int transmit);
|
||||||
|
|
||||||
struct qemud_client_stream *
|
struct qemud_client_stream *
|
||||||
remoteFindClientStream(struct qemud_client *client,
|
remoteFindClientStream(struct qemud_client *client,
|
||||||
|
Loading…
Reference in New Issue
Block a user