X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fxen%2Fnetback%2Fcommon.h;h=c5ec30071ada152909ccb383137c83f7657368c4;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=4306bc8f462ff3ef13d361aa92802c951debbc23;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/drivers/xen/netback/common.h b/drivers/xen/netback/common.h index 4306bc8f4..c5ec30071 100644 --- a/drivers/xen/netback/common.h +++ b/drivers/xen/netback/common.h @@ -29,6 +29,7 @@ #ifndef __NETIF__BACKEND__COMMON_H__ #define __NETIF__BACKEND__COMMON_H__ +#include #include #include #include @@ -45,7 +46,6 @@ #include #include #include -#include #define DPRINTK(_f, _a...) \ pr_debug("(file=%s, line=%d) " _f, \ @@ -64,9 +64,9 @@ typedef struct netif_st { /* Physical parameters of the comms window. */ grant_handle_t tx_shmem_handle; - grant_ref_t tx_shmem_ref; + grant_ref_t tx_shmem_ref; grant_handle_t rx_shmem_handle; - grant_ref_t rx_shmem_ref; + grant_ref_t rx_shmem_ref; unsigned int evtchn; unsigned int irq; @@ -78,10 +78,7 @@ typedef struct netif_st { /* Set of features that can be turned on in dev->features. */ int features; - - /* Internal feature information. */ - int can_queue:1; /* can queue packets for receiver? */ - int copying_receiver:1; /* copy packets to receiver? */ + int can_queue; /* Allow netif_be_start_xmit() to peek ahead in the rx request ring. */ RING_IDX rx_req_cons_peek; @@ -106,7 +103,7 @@ typedef struct netif_st { void netif_disconnect(netif_t *netif); -netif_t *netif_alloc(domid_t domid, unsigned int handle); +netif_t *netif_alloc(domid_t domid, unsigned int handle, u8 be_mac[ETH_ALEN]); int netif_map(netif_t *netif, unsigned long tx_ring_ref, unsigned long rx_ring_ref, unsigned int evtchn);