search for: the_vsock_loopback

Displaying 8 results from an estimated 8 matches for "the_vsock_loopback".

2019 Nov 21
2
[PATCH net-next 4/6] vsock: add vsock_loopback transport
...io > > :). > > > > Completely agree, new transports could use it to handle the protocol without > reimplementing things already done. > > > > + > > > +static struct workqueue_struct *vsock_loopback_workqueue; > > > +static struct vsock_loopback *the_vsock_loopback; > > > > the_vsock_loopback could be a static global variable (not a pointer) and > > vsock_loopback_workqueue could also be included in the struct. > > > > The RCU pointer is really a way to synchronize vsock_loopback_send_pkt() > > and vsock_loopback_cancel_p...
2019 Nov 21
2
[PATCH net-next 4/6] vsock: add vsock_loopback transport
...io > > :). > > > > Completely agree, new transports could use it to handle the protocol without > reimplementing things already done. > > > > + > > > +static struct workqueue_struct *vsock_loopback_workqueue; > > > +static struct vsock_loopback *the_vsock_loopback; > > > > the_vsock_loopback could be a static global variable (not a pointer) and > > vsock_loopback_workqueue could also be included in the struct. > > > > The RCU pointer is really a way to synchronize vsock_loopback_send_pkt() > > and vsock_loopback_cancel_p...
2019 Nov 21
2
[PATCH net-next 4/6] vsock: add vsock_loopback transport
...inux/list.h> > +#include <linux/virtio_vsock.h> Is it time to rename the generic functionality in virtio_transport_common.c? This doesn't have anything to do with virtio :). > + > +static struct workqueue_struct *vsock_loopback_workqueue; > +static struct vsock_loopback *the_vsock_loopback; the_vsock_loopback could be a static global variable (not a pointer) and vsock_loopback_workqueue could also be included in the struct. The RCU pointer is really a way to synchronize vsock_loopback_send_pkt() and vsock_loopback_cancel_pkt() with module exit. There is no other reason for using a...
2019 Nov 21
2
[PATCH net-next 4/6] vsock: add vsock_loopback transport
...inux/list.h> > +#include <linux/virtio_vsock.h> Is it time to rename the generic functionality in virtio_transport_common.c? This doesn't have anything to do with virtio :). > + > +static struct workqueue_struct *vsock_loopback_workqueue; > +static struct vsock_loopback *the_vsock_loopback; the_vsock_loopback could be a static global variable (not a pointer) and vsock_loopback_workqueue could also be included in the struct. The RCU pointer is really a way to synchronize vsock_loopback_send_pkt() and vsock_loopback_cancel_pkt() with module exit. There is no other reason for using a...
2019 Dec 10
7
[PATCH net-next v2 0/6] vsock: add local transport support
v2: - style fixes [Dave] - removed RCU sync and changed 'the_vsock_loopback' in a global static variable [Stefan] - use G2H transport when local transport is not loaded and remote cid is VMADDR_CID_LOCAL [Stefan] - rebased on net-next v1: https://patchwork.kernel.org/cover/11251735/ This series introduces a new transport (vsock_loopback) to handle local commu...
2019 Nov 22
0
[PATCH net-next 4/6] vsock: add vsock_loopback transport
...ella wrote: > > On Thu, Nov 21, 2019 at 09:34:58AM +0000, Stefan Hajnoczi wrote: > > > On Tue, Nov 19, 2019 at 12:01:19PM +0100, Stefano Garzarella wrote: > > > > +static struct workqueue_struct *vsock_loopback_workqueue; > > > > +static struct vsock_loopback *the_vsock_loopback; > > > > > > the_vsock_loopback could be a static global variable (not a pointer) and > > > vsock_loopback_workqueue could also be included in the struct. > > > > > > The RCU pointer is really a way to synchronize vsock_loopback_send_pkt() > > &g...
2019 Nov 21
0
[PATCH net-next 4/6] vsock: add vsock_loopback transport
...his doesn't have anything to do with virtio > :). > Completely agree, new transports could use it to handle the protocol without reimplementing things already done. > > + > > +static struct workqueue_struct *vsock_loopback_workqueue; > > +static struct vsock_loopback *the_vsock_loopback; > > the_vsock_loopback could be a static global variable (not a pointer) and > vsock_loopback_workqueue could also be included in the struct. > > The RCU pointer is really a way to synchronize vsock_loopback_send_pkt() > and vsock_loopback_cancel_pkt() with module exit. There...
2023 Apr 13
0
[RFC PATCH v1] vsock/loopback: don't disable irqs for queue access
...ock/vsock_loopback.c b/net/vmw_vsock/vsock_loopback.c >index e3afc0c866f5..5c6360df1f31 100644 >--- a/net/vmw_vsock/vsock_loopback.c >+++ b/net/vmw_vsock/vsock_loopback.c >@@ -31,8 +31,7 @@ static int vsock_loopback_send_pkt(struct sk_buff *skb) > struct vsock_loopback *vsock = &the_vsock_loopback; > int len = skb->len; > >- skb_queue_tail(&vsock->pkt_queue, skb); >- >+ virtio_vsock_skb_queue_tail(&vsock->pkt_queue, skb); > queue_work(vsock->workqueue, &vsock->pkt_work); > > return len; >-- >2.25.1 >