Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
c2_rnic.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/delay.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <linux/if_vlan.h>
#include <linux/crc32.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/init.h>
#include <linux/dma-mapping.h>
#include <linux/mm.h>
#include <linux/inet.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/route.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/byteorder.h>
#include <rdma/ib_smi.h>
#include "c2.h"
#include "c2_vq.h"

Go to the source code of this file.

Macros

#define C2_MIN_PAGESIZE   1024
 
#define C2_MAX_MRS   32768
 
#define C2_MAX_QPS   16000
 
#define C2_MAX_WQE_SZ   256
 
#define C2_MAX_QP_WR   ((128*1024)/C2_MAX_WQE_SZ)
 
#define C2_MAX_SGES   4
 
#define C2_MAX_SGE_RD   1
 
#define C2_MAX_CQS   32768
 
#define C2_MAX_CQES   4096
 
#define C2_MAX_PDS   16384
 

Functions

int c2_add_addr (struct c2_dev *c2dev, __be32 inaddr, __be32 inmask)
 
int c2_del_addr (struct c2_dev *c2dev, __be32 inaddr, __be32 inmask)
 
int __devinit c2_rnic_init (struct c2_dev *c2dev)
 
void __devexit c2_rnic_term (struct c2_dev *c2dev)
 

Macro Definition Documentation

#define C2_MAX_CQES   4096

Definition at line 75 of file c2_rnic.c.

#define C2_MAX_CQS   32768

Definition at line 74 of file c2_rnic.c.

#define C2_MAX_MRS   32768

Definition at line 68 of file c2_rnic.c.

#define C2_MAX_PDS   16384

Definition at line 76 of file c2_rnic.c.

#define C2_MAX_QP_WR   ((128*1024)/C2_MAX_WQE_SZ)

Definition at line 71 of file c2_rnic.c.

#define C2_MAX_QPS   16000

Definition at line 69 of file c2_rnic.c.

#define C2_MAX_SGE_RD   1

Definition at line 73 of file c2_rnic.c.

#define C2_MAX_SGES   4

Definition at line 72 of file c2_rnic.c.

#define C2_MAX_WQE_SZ   256

Definition at line 70 of file c2_rnic.c.

#define C2_MIN_PAGESIZE   1024

Definition at line 66 of file c2_rnic.c.

Function Documentation

int c2_add_addr ( struct c2_dev c2dev,
__be32  inaddr,
__be32  inmask 
)

Definition at line 212 of file c2_rnic.c.

int c2_del_addr ( struct c2_dev c2dev,
__be32  inaddr,
__be32  inmask 
)

Definition at line 274 of file c2_rnic.c.

int __devinit c2_rnic_init ( struct c2_dev c2dev)

Definition at line 445 of file c2_rnic.c.

void __devexit c2_rnic_term ( struct c2_dev c2dev)

Definition at line 614 of file c2_rnic.c.