Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
ib.c File Reference
#include <linux/kernel.h>
#include <linux/in.h>
#include <linux/if.h>
#include <linux/netdevice.h>
#include <linux/inetdevice.h>
#include <linux/if_arp.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/module.h>
#include "rds.h"
#include "ib.h"

Go to the source code of this file.

Functions

 module_param (fmr_pool_size, int, 0444)
 
 MODULE_PARM_DESC (fmr_pool_size," Max number of fmr per HCA")
 
 module_param (fmr_message_size, int, 0444)
 
 MODULE_PARM_DESC (fmr_message_size," Max size of a RDMA transfer")
 
 module_param (rds_ib_retry_count, int, 0444)
 
 MODULE_PARM_DESC (rds_ib_retry_count," Number of hw retries before reporting an error")
 
 DECLARE_RWSEM (rds_ib_devices_lock)
 
 DEFINE_SPINLOCK (ib_nodev_conns_lock)
 
 LIST_HEAD (ib_nodev_conns)
 
void rds_ib_dev_put (struct rds_ib_device *rds_ibdev)
 
struct rds_ib_devicerds_ib_get_client_data (struct ib_device *device)
 
void rds_ib_exit (void)
 
int rds_ib_init (void)
 
 MODULE_LICENSE ("GPL")
 

Variables

unsigned int fmr_message_size = RDS_FMR_SIZE + 1
 
unsigned int rds_ib_retry_count = RDS_IB_DEFAULT_RETRY_COUNT
 
struct list_head rds_ib_devices
 
struct ib_client rds_ib_client
 
struct rds_transport rds_ib_transport
 

Function Documentation

DECLARE_RWSEM ( rds_ib_devices_lock  )
DEFINE_SPINLOCK ( ib_nodev_conns_lock  )
LIST_HEAD ( ib_nodev_conns  )
MODULE_LICENSE ( "GPL"  )
module_param ( fmr_pool_size  ,
int  ,
0444   
)
module_param ( fmr_message_size  ,
int  ,
0444   
)
module_param ( rds_ib_retry_count  ,
int  ,
0444   
)
MODULE_PARM_DESC ( fmr_pool_size  ,
" Max number of fmr per HCA"   
)
MODULE_PARM_DESC ( fmr_message_size  ,
" Max size of a RDMA transfer"   
)
MODULE_PARM_DESC ( rds_ib_retry_count  ,
" Number of hw retries before reporting an error  
)
void rds_ib_dev_put ( struct rds_ib_device rds_ibdev)

Definition at line 115 of file ib.c.

void rds_ib_exit ( void  )

Definition at line 360 of file ib.c.

struct rds_ib_device* rds_ib_get_client_data ( struct ib_device device)
read

Definition at line 214 of file ib.c.

int rds_ib_init ( void  )

Definition at line 397 of file ib.c.

Variable Documentation

unsigned int fmr_message_size = RDS_FMR_SIZE + 1

Definition at line 47 of file ib.c.

struct ib_client rds_ib_client
Initial value:
= {
.name = "rds_ib",
.add = rds_ib_add_one,
.remove = rds_ib_remove_one
}

Definition at line 260 of file ib.c.

struct list_head rds_ib_devices

Definition at line 63 of file ib.c.

unsigned int rds_ib_retry_count = RDS_IB_DEFAULT_RETRY_COUNT

Definition at line 48 of file ib.c.

struct rds_transport rds_ib_transport
Initial value:
= {
.laddr_check = rds_ib_laddr_check,
.xmit_complete = rds_ib_xmit_complete,
.xmit = rds_ib_xmit,
.xmit_rdma = rds_ib_xmit_rdma,
.xmit_atomic = rds_ib_xmit_atomic,
.recv = rds_ib_recv,
.conn_alloc = rds_ib_conn_alloc,
.conn_free = rds_ib_conn_free,
.conn_connect = rds_ib_conn_connect,
.conn_shutdown = rds_ib_conn_shutdown,
.inc_copy_to_user = rds_ib_inc_copy_to_user,
.inc_free = rds_ib_inc_free,
.cm_initiate_connect = rds_ib_cm_initiate_connect,
.cm_handle_connect = rds_ib_cm_handle_connect,
.cm_connect_complete = rds_ib_cm_connect_complete,
.stats_info_copy = rds_ib_stats_info_copy,
.exit = rds_ib_exit,
.get_mr = rds_ib_get_mr,
.sync_mr = rds_ib_sync_mr,
.free_mr = rds_ib_free_mr,
.flush_mrs = rds_ib_flush_mrs,
.t_owner = THIS_MODULE,
.t_name = "infiniband",
.t_type = RDS_TRANS_IB
}

Definition at line 370 of file ib.c.