search for: lguestnet_info

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

2007 May 09
3
[patch 7/9] lguest: the net driver
...e DEBUG +#include <linux/netdevice.h> +#include <linux/etherdevice.h> +#include <linux/module.h> +#include <linux/mm_types.h> +#include <linux/lguest_bus.h> +#include <asm/io.h> + +#define SHARED_SIZE PAGE_SIZE +#define MAX_LANS 4 +#define NUM_SKBS 8 + +struct lguestnet_info +{ + /* The shared page(s). */ + struct lguest_net *peer; + unsigned long peer_phys; + unsigned long mapsize; + + /* My peerid. */ + unsigned int me; + + /* Receive queue. */ + struct sk_buff *skb[NUM_SKBS]; + struct lguest_dma dma[NUM_SKBS]; +}; + +/* How many bytes left in this page. */ +static u...
2007 May 09
3
[patch 7/9] lguest: the net driver
...e DEBUG +#include <linux/netdevice.h> +#include <linux/etherdevice.h> +#include <linux/module.h> +#include <linux/mm_types.h> +#include <linux/lguest_bus.h> +#include <asm/io.h> + +#define SHARED_SIZE PAGE_SIZE +#define MAX_LANS 4 +#define NUM_SKBS 8 + +struct lguestnet_info +{ + /* The shared page(s). */ + struct lguest_net *peer; + unsigned long peer_phys; + unsigned long mapsize; + + /* My peerid. */ + unsigned int me; + + /* Receive queue. */ + struct sk_buff *skb[NUM_SKBS]; + struct lguest_dma dma[NUM_SKBS]; +}; + +/* How many bytes left in this page. */ +static u...
2007 May 08
1
[PATCH] lguest: two net bugfixes
...; 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->me])); /* Deregister sg lists. */...
2007 May 08
1
[PATCH] lguest: two net bugfixes
...; 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->me])); /* Deregister sg lists. */...
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