[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161119.220804.755313313976863187.davem@davemloft.net>
Date: Sat, 19 Nov 2016 22:08:04 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: stefanha@...hat.com
Cc: netdev@...r.kernel.org, cavery@...hat.com,
imbrenda@...ux.vnet.ibm.com, jhansen@...are.com
Subject: Re: [PATCH] VSOCK: add loopback to virtio_transport
From: Stefan Hajnoczi <stefanha@...hat.com>
Date: Thu, 17 Nov 2016 15:49:23 +0000
> @@ -159,6 +199,10 @@ virtio_transport_send_pkt(struct virtio_vsock_pkt *pkt)
> return -ENODEV;
> }
>
> + if (le32_to_cpu(pkt->hdr.dst_cid) == vsock->guest_cid) {
> + return virtio_transport_send_pkt_loopback(vsock, pkt);
> + }
> +
A single-statement basic block should get surrounding curly
braces.
Powered by blists - more mailing lists