Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ibmveth.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/dma-mapping.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/mm.h>
#include <linux/pm.h>
#include <linux/ethtool.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/slab.h>
#include <asm/hvcall.h>
#include <linux/atomic.h>
#include <asm/vio.h>
#include <asm/iommu.h>
#include <asm/firmware.h>
#include "ibmveth.h"

Go to the source code of this file.

Data Structures

struct  ibmveth_stat
 

Macros

#define ibmveth_driver_version   "1.04"
 
#define IBMVETH_STAT_OFF(stat)   offsetof(struct ibmveth_adapter, stat)
 
#define IBMVETH_GET_STAT(a, off)   *((u64 *)(((unsigned long)(a)) + off))
 
#define page_offset(v)   ((unsigned long)(v) & ((1 << 12) - 1))
 
#define ATTR(_name, _mode)
 

Functions

 MODULE_AUTHOR ("Santiago Leon <[email protected]>")
 
 MODULE_DESCRIPTION ("IBM Power Virtual Ethernet Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (ibmveth_driver_version)
 
 module_param (tx_copybreak, uint, 0644)
 
 MODULE_PARM_DESC (tx_copybreak,"Maximum size of packet that is copied to a new buffer on transmit")
 
 module_param (rx_copybreak, uint, 0644)
 
 MODULE_PARM_DESC (rx_copybreak,"Maximum size of packet that is copied to a new buffer on receive")
 
 module_param (rx_flush, uint, 0644)
 
 MODULE_PARM_DESC (rx_flush,"Flush receive buffers before use")
 
 MODULE_DEVICE_TABLE (vio, ibmveth_device_table)
 
 module_init (ibmveth_module_init)
 
 module_exit (ibmveth_module_exit)
 

Variables

struct ibmveth_stat ibmveth_stats []
 

Macro Definition Documentation

#define ATTR (   _name,
  _mode 
)
Value:
struct attribute veth_##_name##_attr = { \
.name = __stringify(_name), .mode = _mode, \
};

Definition at line 1562 of file ibmveth.c.

#define ibmveth_driver_version   "1.04"

Definition at line 62 of file ibmveth.c.

#define IBMVETH_GET_STAT (   a,
  off 
)    *((u64 *)(((unsigned long)(a)) + off))

Definition at line 89 of file ibmveth.c.

#define IBMVETH_STAT_OFF (   stat)    offsetof(struct ibmveth_adapter, stat)

Definition at line 88 of file ibmveth.c.

#define page_offset (   v)    ((unsigned long)(v) & ((1 << 12) - 1))

Definition at line 896 of file ibmveth.c.

Function Documentation

MODULE_AUTHOR ( "Santiago Leon <[email protected]>"  )
MODULE_DESCRIPTION ( "IBM Power Virtual Ethernet Driver"  )
MODULE_DEVICE_TABLE ( vio  ,
ibmveth_device_table   
)
module_exit ( ibmveth_module_exit  )
module_init ( ibmveth_module_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( tx_copybreak  ,
uint  ,
0644   
)
module_param ( rx_copybreak  ,
uint  ,
0644   
)
module_param ( rx_flush  ,
uint  ,
0644   
)
MODULE_PARM_DESC ( tx_copybreak  ,
"Maximum size of packet that is copied to a new buffer on transmit"   
)
MODULE_PARM_DESC ( rx_copybreak  ,
"Maximum size of packet that is copied to a new buffer on receive"   
)
MODULE_PARM_DESC ( rx_flush  ,
"Flush receive buffers before use"   
)
MODULE_VERSION ( ibmveth_driver_version  )

Variable Documentation

struct ibmveth_stat ibmveth_stats[]
Initial value:
= {
{ "replenish_task_cycles", IBMVETH_STAT_OFF(replenish_task_cycles) },
{ "replenish_no_mem", IBMVETH_STAT_OFF(replenish_no_mem) },
{ "replenish_add_buff_failure",
IBMVETH_STAT_OFF(replenish_add_buff_failure) },
{ "replenish_add_buff_success",
IBMVETH_STAT_OFF(replenish_add_buff_success) },
{ "rx_invalid_buffer", IBMVETH_STAT_OFF(rx_invalid_buffer) },
{ "rx_no_buffer", IBMVETH_STAT_OFF(rx_no_buffer) },
{ "tx_map_failed", IBMVETH_STAT_OFF(tx_map_failed) },
{ "tx_send_failed", IBMVETH_STAT_OFF(tx_send_failed) },
{ "fw_enabled_ipv4_csum", IBMVETH_STAT_OFF(fw_ipv4_csum_support) },
{ "fw_enabled_ipv6_csum", IBMVETH_STAT_OFF(fw_ipv6_csum_support) },
}

Definition at line 91 of file ibmveth.c.