public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* AF_VSOCK loopback
@ 2016-11-10 14:43 Stefan Hajnoczi
  2016-11-10 16:17 ` Cathy Avery
  2016-11-11 14:14 ` Jorgen S. Hansen
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2016-11-10 14:43 UTC (permalink / raw)
  To: Jorgen Hansen; +Cc: cavery, netdev

[-- Attachment #1: Type: text/plain, Size: 876 bytes --]

Hi Jorgen,
Cathy Avery found that the AF_VSOCK VMCI transport does loopback inside
the guest (but not on the host?).  The virtio transport currently does
no loopback.

The loopback scenario I'm thinking of is where process A listens on port
1234 and process B on the same machine connects to port 1234 both with
the same CID.

I'd like to make the virtio transport compatible with VMCI transport
semantics so AF_VSOCK behaves the same regardless of the transport.
This means loopback must be added to virtio-vsock.

The core net/vmware/af_vsock.c code does not implement loopback.  How
does VMCI do loopback?  Are the loopback packets reflected back from the
host?  Or does the guest driver notice the loopback and avoid passing
packets to the host in the first place?

Maybe we can make the loopback code common in af_vsock.c if that avoids
code duplication.

Thanks,
Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-14 19:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10 14:43 AF_VSOCK loopback Stefan Hajnoczi
2016-11-10 16:17 ` Cathy Avery
2016-11-11 14:14 ` Jorgen S. Hansen
2016-11-14 19:14   ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox