Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
xen-netfront.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/ethtool.h>
#include <linux/if_ether.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/moduleparam.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <net/ip.h>
#include <asm/xen/page.h>
#include <xen/xen.h>
#include <xen/xenbus.h>
#include <xen/events.h>
#include <xen/page.h>
#include <xen/platform_pci.h>
#include <xen/grant_table.h>
#include <xen/interface/io/netif.h>
#include <xen/interface/memory.h>
#include <xen/interface/grant_table.h>

Go to the source code of this file.

Data Structures

struct  netfront_cb
 
struct  netfront_stats
 
struct  netfront_info
 
union  netfront_info::skb_entry
 
struct  netfront_rx_info
 
struct  xennet_stat
 

Macros

#define NETFRONT_SKB_CB(skb)   ((struct netfront_cb *)((skb)->cb))
 
#define RX_COPY_THRESHOLD   256
 
#define GRANT_INVALID_REF   0
 
#define NET_TX_RING_SIZE   __CONST_RING_SIZE(xen_netif_tx, PAGE_SIZE)
 
#define NET_RX_RING_SIZE   __CONST_RING_SIZE(xen_netif_rx, PAGE_SIZE)
 
#define TX_MAX_TARGET   min_t(int, NET_TX_RING_SIZE, 256)
 
#define RX_MIN_TARGET   8
 
#define RX_DFL_MIN_TARGET   64
 
#define RX_MAX_TARGET   min_t(int, NET_RX_RING_SIZE, 256)
 
#define xennet_sysfs_addif(dev)   (0)
 
#define xennet_sysfs_delif(dev)   do { } while (0)
 

Functions

 module_init (netif_init)
 
 module_exit (netif_exit)
 
 MODULE_DESCRIPTION ("Xen virtual network device frontend")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("xen:vif")
 
 MODULE_ALIAS ("xennet")
 

Macro Definition Documentation

#define GRANT_INVALID_REF   0

Definition at line 68 of file xen-netfront.c.

#define NET_RX_RING_SIZE   __CONST_RING_SIZE(xen_netif_rx, PAGE_SIZE)

Definition at line 71 of file xen-netfront.c.

#define NET_TX_RING_SIZE   __CONST_RING_SIZE(xen_netif_tx, PAGE_SIZE)

Definition at line 70 of file xen-netfront.c.

#define NETFRONT_SKB_CB (   skb)    ((struct netfront_cb *)((skb)->cb))

Definition at line 64 of file xen-netfront.c.

#define RX_COPY_THRESHOLD   256

Definition at line 66 of file xen-netfront.c.

#define RX_DFL_MIN_TARGET   64

Definition at line 118 of file xen-netfront.c.

#define RX_MAX_TARGET   min_t(int, NET_RX_RING_SIZE, 256)

Definition at line 119 of file xen-netfront.c.

#define RX_MIN_TARGET   8

Definition at line 117 of file xen-netfront.c.

#define TX_MAX_TARGET   min_t(int, NET_TX_RING_SIZE, 256)

Definition at line 72 of file xen-netfront.c.

#define xennet_sysfs_addif (   dev)    (0)

Definition at line 201 of file xen-netfront.c.

#define xennet_sysfs_delif (   dev)    do { } while (0)

Definition at line 202 of file xen-netfront.c.

Function Documentation

MODULE_ALIAS ( "xen:vif"  )
MODULE_ALIAS ( "xennet"  )
MODULE_DESCRIPTION ( "Xen virtual network device frontend"  )
module_exit ( netif_exit  )
module_init ( netif_init  )
MODULE_LICENSE ( "GPL"  )