Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions | Variables
cxgb4i.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <scsi/scsi_host.h>
#include <net/tcp.h>
#include <net/dst.h>
#include <linux/netdevice.h>
#include "t4_msg.h"
#include "cxgb4.h"
#include "cxgb4_uld.h"
#include "t4fw_api.h"
#include "l2t.h"
#include "cxgb4i.h"
#include "../libcxgbi.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ":%s: " fmt, __func__
 
#define DRV_MODULE_NAME   "cxgb4i"
 
#define DRV_MODULE_DESC   "Chelsio T4 iSCSI Driver"
 
#define DRV_MODULE_VERSION   "0.9.1"
 
#define DRV_MODULE_RELDATE   "Aug. 2010"
 
#define DIV_ROUND_UP(n, d)   (((n) + (d) - 1) / (d))
 
#define RCV_BUFSIZ_MASK   0x3FFU
 
#define MAX_IMM_TX_PKT_LEN   128
 
#define ULPMEM_IDATA_MAX_NPPODS   4 /* 256/PPOD_SIZE */
 
#define RX_PULL_LEN   128
 

Typedefs

typedef void(* cxgb4i_cplhandler_func )(struct cxgbi_device *, struct sk_buff *)
 

Functions

 MODULE_AUTHOR ("Chelsio Communications, Inc.")
 
 MODULE_DESCRIPTION (DRV_MODULE_DESC)
 
 MODULE_VERSION (DRV_MODULE_VERSION)
 
 MODULE_LICENSE ("GPL")
 
 module_param (dbg_level, uint, 0644)
 
 MODULE_PARM_DESC (dbg_level,"Debug flag (default=0)")
 
 module_param (cxgb4i_rcv_win, int, 0644)
 
 MODULE_PARM_DESC (cxgb4i_rcv_win,"TCP reveive window in bytes")
 
 module_param (cxgb4i_snd_win, int, 0644)
 
 MODULE_PARM_DESC (cxgb4i_snd_win,"TCP send window in bytes")
 
 module_param (cxgb4i_rx_credit_thres, int, 0644)
 
 MODULE_PARM_DESC (cxgb4i_rx_credit_thres,"RX credits return threshold in bytes (default=10KB)")
 
 module_param (cxgb4i_max_connect, uint, 0644)
 
 MODULE_PARM_DESC (cxgb4i_max_connect,"Maximum number of connections")
 
 module_param (cxgb4i_sport_base, ushort, 0644)
 
 MODULE_PARM_DESC (cxgb4i_sport_base,"Starting port number (default 20000)")
 
int cxgb4i_ofld_init (struct cxgbi_device *cdev)
 
 module_init (cxgb4i_init_module)
 
 module_exit (cxgb4i_exit_module)
 

Variables

cxgb4i_cplhandler_func cxgb4i_cplhandlers [NUM_CPL_CMDS]
 

Macro Definition Documentation

#define DIV_ROUND_UP (   n,
  d 
)    (((n) + (d) - 1) / (d))

Definition at line 153 of file cxgb4i.c.

#define DRV_MODULE_DESC   "Chelsio T4 iSCSI Driver"

Definition at line 35 of file cxgb4i.c.

#define DRV_MODULE_NAME   "cxgb4i"

Definition at line 34 of file cxgb4i.c.

#define DRV_MODULE_RELDATE   "Aug. 2010"

Definition at line 37 of file cxgb4i.c.

#define DRV_MODULE_VERSION   "0.9.1"

Definition at line 36 of file cxgb4i.c.

#define MAX_IMM_TX_PKT_LEN   128

Definition at line 155 of file cxgb4i.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ":%s: " fmt, __func__

Definition at line 14 of file cxgb4i.c.

#define RCV_BUFSIZ_MASK   0x3FFU

Definition at line 154 of file cxgb4i.c.

#define RX_PULL_LEN   128

Definition at line 1503 of file cxgb4i.c.

#define ULPMEM_IDATA_MAX_NPPODS   4 /* 256/PPOD_SIZE */

Definition at line 1236 of file cxgb4i.c.

Typedef Documentation

typedef void(* cxgb4i_cplhandler_func)(struct cxgbi_device *, struct sk_buff *)

Definition at line 72 of file cxgb4i.c.

Function Documentation

int cxgb4i_ofld_init ( struct cxgbi_device cdev)

Definition at line 1209 of file cxgb4i.c.

MODULE_AUTHOR ( "Chelsio  Communications,
Inc."   
)
MODULE_DESCRIPTION ( DRV_MODULE_DESC  )
module_exit ( cxgb4i_exit_module  )
module_init ( cxgb4i_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( dbg_level  ,
uint  ,
0644   
)
module_param ( cxgb4i_rcv_win  ,
int  ,
0644   
)
module_param ( cxgb4i_snd_win  ,
int  ,
0644   
)
module_param ( cxgb4i_rx_credit_thres  ,
int  ,
0644   
)
module_param ( cxgb4i_max_connect  ,
uint  ,
0644   
)
module_param ( cxgb4i_sport_base  ,
ushort  ,
0644   
)
MODULE_PARM_DESC ( dbg_level  ,
"Debug flag (default=0)"   
)
MODULE_PARM_DESC ( cxgb4i_rcv_win  ,
"TCP reveive window in bytes  
)
MODULE_PARM_DESC ( cxgb4i_snd_win  ,
"TCP send window in bytes  
)
MODULE_PARM_DESC ( cxgb4i_rx_credit_thres  ,
"RX credits return threshold in bytes (default=10KB)"   
)
MODULE_PARM_DESC ( cxgb4i_max_connect  ,
"Maximum number of connections"   
)
MODULE_PARM_DESC ( cxgb4i_sport_base  ,
"Starting port number (default 20000)"   
)
MODULE_VERSION ( DRV_MODULE_VERSION  )

Variable Documentation

cxgb4i_cplhandler_func cxgb4i_cplhandlers[NUM_CPL_CMDS]
Initial value:
= {
[CPL_ACT_ESTABLISH] = do_act_establish,
[CPL_ACT_OPEN_RPL] = do_act_open_rpl,
[CPL_PEER_CLOSE] = do_peer_close,
[CPL_ABORT_REQ_RSS] = do_abort_req_rss,
[CPL_ABORT_RPL_RSS] = do_abort_rpl_rss,
[CPL_CLOSE_CON_RPL] = do_close_con_rpl,
[CPL_FW4_ACK] = do_fw4_ack,
[CPL_ISCSI_HDR] = do_rx_iscsi_hdr,
[CPL_SET_TCB_RPL] = do_set_tcb_rpl,
[CPL_RX_DATA_DDP] = do_rx_data_ddp,
}

Definition at line 1196 of file cxgb4i.c.