Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
ib_srp.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/string.h>
#include <linux/parser.h>
#include <linux/random.h>
#include <linux/jiffies.h>
#include <linux/atomic.h>
#include <scsi/scsi.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_dbg.h>
#include <scsi/srp.h>
#include <scsi/scsi_transport_srp.h>
#include "ib_srp.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   PFX fmt
 
#define DRV_NAME   "ib_srp"
 
#define PFX   DRV_NAME ": "
 
#define DRV_VERSION   "0.2"
 
#define DRV_RELDATE   "November 1, 2005"
 

Enumerations

enum  {
  SRP_OPT_ERR = 0, SRP_OPT_ID_EXT = 1 << 0, SRP_OPT_IOC_GUID = 1 << 1, SRP_OPT_DGID = 1 << 2,
  SRP_OPT_PKEY = 1 << 3, SRP_OPT_SERVICE_ID = 1 << 4, SRP_OPT_MAX_SECT = 1 << 5, SRP_OPT_MAX_CMD_PER_LUN = 1 << 6,
  SRP_OPT_IO_CLASS = 1 << 7, SRP_OPT_INITIATOR_EXT = 1 << 8, SRP_OPT_CMD_SG_ENTRIES = 1 << 9, SRP_OPT_ALLOW_EXT_SG = 1 << 10,
  SRP_OPT_SG_TABLESIZE = 1 << 11, SRP_OPT_ALL
}
 

Functions

 MODULE_AUTHOR ("Roland Dreier")
 
 MODULE_DESCRIPTION ("InfiniBand SCSI RDMA Protocol initiator ""v"DRV_VERSION" ("DRV_RELDATE")")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 module_param (srp_sg_tablesize, uint, 0444)
 
 MODULE_PARM_DESC (srp_sg_tablesize,"Deprecated name for cmd_sg_entries")
 
 module_param (cmd_sg_entries, uint, 0444)
 
 MODULE_PARM_DESC (cmd_sg_entries,"Default number of gather/scatter entries in the SRP command (default is 12, max 255)")
 
 module_param (indirect_sg_entries, uint, 0444)
 
 MODULE_PARM_DESC (indirect_sg_entries,"Default max number of gather/scatter entries (default is 12, max is "__stringify(SCSI_MAX_SG_CHAIN_SEGMENTS)")")
 
 module_param (allow_ext_sg, bool, 0444)
 
 MODULE_PARM_DESC (allow_ext_sg,"Default behavior when there are more than cmd_sg_entries S/G entries after mapping; fails the request when false (default false)")
 
 module_param (topspin_workarounds, int, 0444)
 
 MODULE_PARM_DESC (topspin_workarounds,"Enable workarounds for Topspin/Cisco SRP target bugs if != 0")
 
 module_init (srp_init_module)
 
 module_exit (srp_cleanup_module)
 

Macro Definition Documentation

#define DRV_NAME   "ib_srp"

Definition at line 54 of file ib_srp.c.

#define DRV_RELDATE   "November 1, 2005"

Definition at line 57 of file ib_srp.c.

#define DRV_VERSION   "0.2"

Definition at line 56 of file ib_srp.c.

#define PFX   DRV_NAME ": "

Definition at line 55 of file ib_srp.c.

#define pr_fmt (   fmt)    PFX fmt

Definition at line 33 of file ib_srp.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
SRP_OPT_ERR 
SRP_OPT_ID_EXT 
SRP_OPT_IOC_GUID 
SRP_OPT_DGID 
SRP_OPT_PKEY 
SRP_OPT_SERVICE_ID 
SRP_OPT_MAX_SECT 
SRP_OPT_MAX_CMD_PER_LUN 
SRP_OPT_IO_CLASS 
SRP_OPT_INITIATOR_EXT 
SRP_OPT_CMD_SG_ENTRIES 
SRP_OPT_ALLOW_EXT_SG 
SRP_OPT_SG_TABLESIZE 
SRP_OPT_ALL 

Definition at line 1930 of file ib_srp.c.

Function Documentation

MODULE_AUTHOR ( "Roland Dreier"  )
MODULE_DESCRIPTION ( "InfiniBand SCSI RDMA Protocol initiator ""v"DRV_VERSION" ("DRV_RELDATE")"  )
module_exit ( srp_cleanup_module  )
module_init ( srp_init_module  )
MODULE_LICENSE ( "Dual BSD/GPL"  )
module_param ( srp_sg_tablesize  ,
uint  ,
0444   
)
module_param ( cmd_sg_entries  ,
uint  ,
0444   
)
module_param ( indirect_sg_entries  ,
uint  ,
0444   
)
module_param ( allow_ext_sg  ,
bool  ,
0444   
)
module_param ( topspin_workarounds  ,
int  ,
0444   
)
MODULE_PARM_DESC ( srp_sg_tablesize  ,
"Deprecated name for cmd_sg_entries"   
)
MODULE_PARM_DESC ( cmd_sg_entries  ,
"Default number of gather/scatter entries in the SRP command (default is 12, max 255)"   
)
MODULE_PARM_DESC ( indirect_sg_entries  ,
"Default max number of gather/scatter entries (default is 12, max is "__stringify(SCSI_MAX_SG_CHAIN_SEGMENTS)")"   
)
MODULE_PARM_DESC ( allow_ext_sg  ,
"Default behavior when there are more than cmd_sg_entries S/G entries after mapping; fails the request when false (default false)"   
)
MODULE_PARM_DESC ( topspin_workarounds  )