search for: lguestnet_close

Displaying 6 results from an estimated 6 matches for "lguestnet_close".

2007 May 08
1
[PATCH] lguest: two net bugfixes
...*)dev->mem) |= 0x1; + close(ipfd); verbose("device %p: tun net %u.%u.%u.%u\n", diff -r 999a9058a151 drivers/net/lguest_net.c --- a/drivers/net/lguest_net.c Tue May 08 19:49:33 2007 +1000 +++ b/drivers/net/lguest_net.c Tue May 08 21:03:47 2007 +1000 @@ -249,7 +249,7 @@ static int lguestnet_close(struct net_de struct lguestnet_info *info = dev->priv; /* Clear all trace: others might deliver packets, we'll ignore it. */ - memset(&info->peer[info->me], 0xFF, sizeof(info->peer[info->me])); + memset(&info->peer[info->me], 0, sizeof(info->peer[info->m...
2007 May 08
1
[PATCH] lguest: two net bugfixes
...*)dev->mem) |= 0x1; + close(ipfd); verbose("device %p: tun net %u.%u.%u.%u\n", diff -r 999a9058a151 drivers/net/lguest_net.c --- a/drivers/net/lguest_net.c Tue May 08 19:49:33 2007 +1000 +++ b/drivers/net/lguest_net.c Tue May 08 21:03:47 2007 +1000 @@ -249,7 +249,7 @@ static int lguestnet_close(struct net_de struct lguestnet_info *info = dev->priv; /* Clear all trace: others might deliver packets, we'll ignore it. */ - memset(&info->peer[info->me], 0xFF, sizeof(info->peer[info->me])); + memset(&info->peer[info->me], 0, sizeof(info->peer[info->m...
2007 May 09
3
[patch 7/9] lguest: the net driver
...ll_slot(dev, i) != 0) + goto cleanup; + } + if (!hcall(LHCALL_BIND_DMA, peer_key(info, info->me), __pa(info->dma), + (NUM_SKBS << 8) | dev->irq)) + goto cleanup; + return 0; + +cleanup: + while (--i >= 0) + dev_kfree_skb(info->skb[i]); + return -ENOMEM; +} + +static int lguestnet_close(struct net_device *dev) +{ + unsigned int i; + struct lguestnet_info *info = dev->priv; + + /* Clear all trace: others might deliver packets, we'll ignore it. */ + memset(&info->peer[info->me], 0, sizeof(info->peer[info->me])); + + /* Deregister sg lists. */ + hcall(LHCALL_BI...
2007 May 09
3
[patch 7/9] lguest: the net driver
...ll_slot(dev, i) != 0) + goto cleanup; + } + if (!hcall(LHCALL_BIND_DMA, peer_key(info, info->me), __pa(info->dma), + (NUM_SKBS << 8) | dev->irq)) + goto cleanup; + return 0; + +cleanup: + while (--i >= 0) + dev_kfree_skb(info->skb[i]); + return -ENOMEM; +} + +static int lguestnet_close(struct net_device *dev) +{ + unsigned int i; + struct lguestnet_info *info = dev->priv; + + /* Clear all trace: others might deliver packets, we'll ignore it. */ + memset(&info->peer[info->me], 0, sizeof(info->peer[info->me])); + + /* Deregister sg lists. */ + hcall(LHCALL_BI...
2007 Sep 25
50
[patch 00/43] lguest: Patches for 2.6.24 (and patchbomb test)
Hi all, These are the patches I'm planning to submit for 2.6.24. Comments gratefully accepted. Along with the usual cleanups and improvements are Jes' de-i386-ification patches, and a new "virtio" mechanism designed to be shared with KVM (and hopefully other hypervisors). Cheers, Rusty. Documentation/lguest/Makefile | 30 Documentation/lguest/lguest.c
2007 Sep 25
50
[patch 00/43] lguest: Patches for 2.6.24 (and patchbomb test)
Hi all, These are the patches I'm planning to submit for 2.6.24. Comments gratefully accepted. Along with the usual cleanups and improvements are Jes' de-i386-ification patches, and a new "virtio" mechanism designed to be shared with KVM (and hopefully other hypervisors). Cheers, Rusty. Documentation/lguest/Makefile | 30 Documentation/lguest/lguest.c