[PATCH v3 1/3] VSOCK: Add vsockmon tap functions

2017-04-12 Thread Stefan Hajnoczi
From: Gerard Garcia Add tap functions that can be used by the vsock transports to deliver packets to vsockmon virtual network devices. Signed-off-by: Gerard Garcia Signed-off-by: Stefan Hajnoczi --- v3: * Include missing header in af_vsock_tap.c --- net/vmw_vsock/Makefile | 2 +- in

Re: [PATCH v3 1/3] VSOCK: Add vsockmon tap functions

2017-04-12 Thread Michael S. Tsirkin
On Wed, Apr 12, 2017 at 05:08:23PM +0100, Stefan Hajnoczi wrote: > From: Gerard Garcia > > Add tap functions that can be used by the vsock transports to > deliver packets to vsockmon virtual network devices. > > Signed-off-by: Gerard Garcia > Signed-off-by: Stefan Hajnoczi > --- > v3: > * Inc

Re: [PATCH v3 1/3] VSOCK: Add vsockmon tap functions

2017-04-13 Thread Stefan Hajnoczi
On Wed, Apr 12, 2017 at 07:37:36PM +0300, Michael S. Tsirkin wrote: > On Wed, Apr 12, 2017 at 05:08:23PM +0100, Stefan Hajnoczi wrote: > > +int __vsock_remove_tap(struct vsock_tap *vt) { > > + bool found = false; > > + struct vsock_tap *tmp; > > + > > + spin_lock(&vsock_tap_lock); > > + > > +