Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/debugfs.h>
#include <linux/list.h>
#include <linux/netdevice.h>
#include <linux/if_vlan.h>
#include <linux/scatterlist.h>
#include <linux/skbuff.h>
#include <linux/vmalloc.h>
#include <scsi/scsi_device.h>
#include <scsi/libiscsi_tcp.h>
Go to the source code of this file.
Data Structures | |
struct | cxgbi_pagepod_hdr |
struct | cxgbi_pagepod |
struct | cxgbi_tag_format |
struct | cxgbi_gather_list |
struct | cxgbi_ddp_info |
struct | sge_opaque_hdr |
struct | cxgbi_sock |
struct | cxgbi_skb_rx_cb |
struct | cxgbi_skb_tx_cb |
struct | cxgbi_skb_cb |
struct | cxgbi_hba |
struct | cxgbi_ports_map |
struct | cxgbi_device |
struct | cxgbi_conn |
struct | cxgbi_endpoint |
struct | cxgbi_task_data |
#define CPL_RX_DDP_STATUS_DCRC_SHIFT 21 /* dcrc error */ |
Definition at line 85 of file libcxgbi.h.
#define CPL_RX_DDP_STATUS_DDP_SHIFT 16 /* ddp'able */ |
Definition at line 82 of file libcxgbi.h.
#define CPL_RX_DDP_STATUS_HCRC_SHIFT 20 /* hcrc error */ |
Definition at line 84 of file libcxgbi.h.
Definition at line 83 of file libcxgbi.h.
Definition at line 59 of file libcxgbi.h.
Definition at line 559 of file libcxgbi.h.
#define CXGBI_FLAG_ADAPTER_RESET 0x4 |
Definition at line 510 of file libcxgbi.h.
#define CXGBI_FLAG_DEV_T3 0x1 |
Definition at line 508 of file libcxgbi.h.
#define CXGBI_FLAG_DEV_T4 0x2 |
Definition at line 509 of file libcxgbi.h.
#define CXGBI_FLAG_IPV4_SET 0x10 |
Definition at line 511 of file libcxgbi.h.
#define CXGBI_MAX_CONN 16384 |
Definition at line 48 of file libcxgbi.h.
#define CXGBI_SKB_CB | ( | skb | ) | ((struct cxgbi_skb_cb *)&((skb)->cb[0])) |
Definition at line 284 of file libcxgbi.h.
#define cxgbi_skcb_flags | ( | skb | ) | (CXGBI_SKB_CB(skb)->flags) |
Definition at line 285 of file libcxgbi.h.
#define cxgbi_skcb_rx_ddigest | ( | skb | ) | (CXGBI_SKB_CB(skb)->rx.ddigest) |
Definition at line 288 of file libcxgbi.h.
#define cxgbi_skcb_rx_pdulen | ( | skb | ) | (CXGBI_SKB_CB(skb)->rx.pdulen) |
Definition at line 289 of file libcxgbi.h.
#define cxgbi_skcb_tcp_seq | ( | skb | ) | (CXGBI_SKB_CB(skb)->seq) |
Definition at line 287 of file libcxgbi.h.
#define cxgbi_skcb_tx_wr_next | ( | skb | ) | (CXGBI_SKB_CB(skb)->tx.wr_next) |
Definition at line 290 of file libcxgbi.h.
#define cxgbi_skcb_ulp_mode | ( | skb | ) | (CXGBI_SKB_CB(skb)->ulp_mode) |
Definition at line 286 of file libcxgbi.h.
#define cxgbi_sock_get | ( | csk | ) | __cxgbi_sock_get(__func__, csk) |
Definition at line 373 of file libcxgbi.h.
#define cxgbi_sock_put | ( | csk | ) | __cxgbi_sock_put(__func__, csk) |
Definition at line 364 of file libcxgbi.h.
#define DDP_PGIDX_MAX 4 |
Definition at line 136 of file libcxgbi.h.
#define DDP_THRESHOLD 2048 |
Definition at line 137 of file libcxgbi.h.
#define ISCSI_PDU_NONPAYLOAD_LEN 312 /* bhs(48) + ahs(256) + digest(8)*/ |
Definition at line 54 of file libcxgbi.h.
Definition at line 583 of file libcxgbi.h.
Definition at line 41 of file libcxgbi.h.
#define MAX_PDU_FRAGS ((ULP2_MAX_PDU_PAYLOAD + 512 - 1) / 512) |
Definition at line 574 of file libcxgbi.h.
#define PCIE_MEMWIN_MAX_NPPODS 16 /* 1024/PPOD_SIZE */ |
Definition at line 146 of file libcxgbi.h.
#define PPOD_COLOR | ( | x | ) | ((x) << PPOD_COLOR_SHIFT) |
Definition at line 149 of file libcxgbi.h.
#define PPOD_COLOR_SHIFT 0 |
Definition at line 148 of file libcxgbi.h.
#define PPOD_IDX_MAX_SIZE 24 |
Definition at line 152 of file libcxgbi.h.
#define PPOD_IDX_SHIFT 6 |
Definition at line 151 of file libcxgbi.h.
#define PPOD_PAGES_MAX 4 |
Definition at line 95 of file libcxgbi.h.
Definition at line 139 of file libcxgbi.h.
#define PPOD_SIZE sizeof(struct cxgbi_pagepod) /* 64 */ |
Definition at line 141 of file libcxgbi.h.
#define PPOD_SIZE_SHIFT 6 |
Definition at line 142 of file libcxgbi.h.
#define PPOD_TAG | ( | x | ) | ((x) << PPOD_TAG_SHIFT) |
Definition at line 158 of file libcxgbi.h.
#define PPOD_TAG_SHIFT 6 |
Definition at line 157 of file libcxgbi.h.
#define PPOD_TID | ( | x | ) | ((x) << PPOD_TID_SHIFT) |
Definition at line 155 of file libcxgbi.h.
#define PPOD_TID_SHIFT 0 |
Definition at line 154 of file libcxgbi.h.
#define PPOD_VALID | ( | x | ) | ((x) << PPOD_VALID_SHIFT) |
Definition at line 161 of file libcxgbi.h.
#define PPOD_VALID_FLAG PPOD_VALID(1U) |
Definition at line 162 of file libcxgbi.h.
#define PPOD_VALID_SHIFT 24 |
Definition at line 160 of file libcxgbi.h.
#define SKB_TX_ISCSI_PDU_HEADER_MAX (sizeof(struct iscsi_hdr) + ISCSI_MAX_AHS_SIZE) |
Definition at line 51 of file libcxgbi.h.
#define SKB_WR_LIST_SIZE (MAX_SKB_FRAGS + 2) |
Definition at line 421 of file libcxgbi.h.
#define ULP2_MAX_PDU_PAYLOAD (ULP2_MAX_PKT_SIZE - ISCSI_PDU_NONPAYLOAD_LEN) |
Definition at line 64 of file libcxgbi.h.
#define ULP2_MAX_PKT_SIZE 16224 |
Definition at line 63 of file libcxgbi.h.
#define ULP2_MODE_ISCSI 2 |
Definition at line 61 of file libcxgbi.h.
#define ULPMEM_DSGL_MAX_NPPODS 16 /* 1024/PPOD_SIZE */ |
Definition at line 144 of file libcxgbi.h.
#define ULPMEM_IDATA_MAX_NPPODS 4 /* 256/PPOD_SIZE */ |
Definition at line 145 of file libcxgbi.h.
enum cxgbi_dbg_flag |
CXGBI_DBG_ISCSI | |
CXGBI_DBG_DDP | |
CXGBI_DBG_TOE | |
CXGBI_DBG_SOCK | |
CXGBI_DBG_PDU_TX | |
CXGBI_DBG_PDU_RX | |
CXGBI_DBG_DEV |
Definition at line 30 of file libcxgbi.h.
enum cxgbi_skcb_flags |
SKCBF_TX_NEED_HDR | |
SKCBF_RX_COALESCED | |
SKCBF_RX_HDR | |
SKCBF_RX_DATA | |
SKCBF_RX_STATUS | |
SKCBF_RX_DATA_DDPD | |
SKCBF_RX_HCRC_ERR | |
SKCBF_RX_DCRC_ERR | |
SKCBF_RX_PAD_ERR |
Definition at line 262 of file libcxgbi.h.
enum cxgbi_sock_flags |
CTPF_ABORT_RPL_RCVD | |
CTPF_ABORT_REQ_RCVD | |
CTPF_ABORT_RPL_PENDING | |
CTPF_TX_DATA_SENT | |
CTPF_ACTIVE_CLOSE_NEEDED | |
CTPF_HAS_ATID | |
CTPF_HAS_TID | |
CTPF_OFFLOAD_DOWN |
Definition at line 241 of file libcxgbi.h.
enum cxgbi_sock_states |
CTP_CLOSED | |
CTP_CONNECTING | |
CTP_ACTIVE_OPEN | |
CTP_ESTABLISHED | |
CTP_ACTIVE_CLOSE | |
CTP_PASSIVE_CLOSE | |
CTP_CLOSE_WAIT_1 | |
CTP_CLOSE_WAIT_2 | |
CTP_ABORTING |
Definition at line 226 of file libcxgbi.h.
Definition at line 2573 of file libcxgbi.c.
int cxgbi_bind_conn | ( | struct iscsi_cls_session * | , |
struct iscsi_cls_conn * | , | ||
u64 | , | ||
int | |||
) |
Definition at line 2251 of file libcxgbi.c.
void cxgbi_cleanup_task | ( | struct iscsi_task * | task | ) |
Definition at line 2069 of file libcxgbi.c.
int cxgbi_conn_alloc_pdu | ( | struct iscsi_task * | , |
u8 | |||
) |
Definition at line 1850 of file libcxgbi.c.
int cxgbi_conn_init_pdu | ( | struct iscsi_task * | , |
unsigned | int, | ||
unsigned | int | ||
) |
Definition at line 1912 of file libcxgbi.c.
void cxgbi_conn_pdu_ready | ( | struct cxgbi_sock * | ) |
Definition at line 1666 of file libcxgbi.c.
void cxgbi_conn_tx_open | ( | struct cxgbi_sock * | ) |
Definition at line 1522 of file libcxgbi.c.
int cxgbi_conn_xmit_pdu | ( | struct iscsi_task * | ) |
Definition at line 2015 of file libcxgbi.c.
|
read |
Definition at line 2227 of file libcxgbi.c.
|
read |
Definition at line 2301 of file libcxgbi.c.
int cxgbi_ddp_cleanup | ( | struct cxgbi_device * | ) |
Definition at line 1365 of file libcxgbi.c.
int cxgbi_ddp_init | ( | struct cxgbi_device * | , |
unsigned | int, | ||
unsigned | int, | ||
unsigned | int, | ||
unsigned | int | ||
) |
Definition at line 1378 of file libcxgbi.c.
Definition at line 1014 of file libcxgbi.c.
void cxgbi_ddp_ppod_clear | ( | struct cxgbi_pagepod * | ) |
Definition at line 1041 of file libcxgbi.c.
void cxgbi_ddp_ppod_set | ( | struct cxgbi_pagepod * | , |
struct cxgbi_pagepod_hdr * | , | ||
struct cxgbi_gather_list * | , | ||
unsigned | int | ||
) |
Definition at line 1027 of file libcxgbi.c.
void cxgbi_destroy_session | ( | struct iscsi_cls_session * | ) |
Definition at line 2344 of file libcxgbi.c.
|
read |
Definition at line 178 of file libcxgbi.c.
void cxgbi_device_portmap_cleanup | ( | struct cxgbi_device * | cdev | ) |
Definition at line 76 of file libcxgbi.c.
int cxgbi_device_portmap_create | ( | struct cxgbi_device * | cdev, |
unsigned int | base, | ||
unsigned int | max_conn | ||
) |
Definition at line 56 of file libcxgbi.c.
|
read |
Definition at line 116 of file libcxgbi.c.
void cxgbi_device_unregister | ( | struct cxgbi_device * | ) |
Definition at line 147 of file libcxgbi.c.
Definition at line 159 of file libcxgbi.c.
Definition at line 2428 of file libcxgbi.c.
void cxgbi_ep_disconnect | ( | struct iscsi_endpoint * | ) |
Definition at line 2516 of file libcxgbi.c.
int cxgbi_ep_poll | ( | struct iscsi_endpoint * | , |
int | |||
) |
Definition at line 2505 of file libcxgbi.c.
void cxgbi_get_conn_stats | ( | struct iscsi_cls_conn * | , |
struct iscsi_stats * | |||
) |
Definition at line 2087 of file libcxgbi.c.
int cxgbi_get_ep_param | ( | struct iscsi_endpoint * | ep, |
enum | iscsi_param, | ||
char * | |||
) |
Definition at line 2197 of file libcxgbi.c.
Definition at line 2387 of file libcxgbi.c.
int cxgbi_hbas_add | ( | struct cxgbi_device * | , |
unsigned | int, | ||
unsigned | int, | ||
struct scsi_host_template * | , | ||
struct scsi_transport_template * | |||
) |
Definition at line 248 of file libcxgbi.c.
void cxgbi_hbas_remove | ( | struct cxgbi_device * | ) |
Definition at line 228 of file libcxgbi.c.
void cxgbi_iscsi_cleanup | ( | struct iscsi_transport * | , |
struct scsi_transport_template ** | |||
) |
Definition at line 2560 of file libcxgbi.c.
int cxgbi_iscsi_init | ( | struct iscsi_transport * | , |
struct scsi_transport_template ** | |||
) |
Definition at line 2544 of file libcxgbi.c.
Definition at line 1501 of file libcxgbi.c.
int cxgbi_set_conn_param | ( | struct iscsi_cls_conn * | , |
enum | iscsi_param, | ||
char * | , | ||
int | |||
) |
Definition at line 2150 of file libcxgbi.c.
Definition at line 2354 of file libcxgbi.c.
Definition at line 648 of file libcxgbi.c.
void cxgbi_sock_check_wr_invariants | ( | const struct cxgbi_sock * | ) |
Definition at line 857 of file libcxgbi.c.
void cxgbi_sock_closed | ( | struct cxgbi_sock * | ) |
Definition at line 584 of file libcxgbi.c.
void cxgbi_sock_established | ( | struct cxgbi_sock * | , |
unsigned | int, | ||
unsigned | int | ||
) |
Definition at line 559 of file libcxgbi.c.
void cxgbi_sock_fail_act_open | ( | struct cxgbi_sock * | , |
int | |||
) |
Definition at line 634 of file libcxgbi.c.
void cxgbi_sock_free_cpl_skbs | ( | struct cxgbi_sock * | ) |
Definition at line 407 of file libcxgbi.c.
void cxgbi_sock_purge_wr_queue | ( | struct cxgbi_sock * | ) |
Definition at line 848 of file libcxgbi.c.
void cxgbi_sock_rcv_abort_rpl | ( | struct cxgbi_sock * | ) |
Definition at line 664 of file libcxgbi.c.
void cxgbi_sock_rcv_close_conn_rpl | ( | struct cxgbi_sock * | , |
u32 | |||
) |
Definition at line 718 of file libcxgbi.c.
void cxgbi_sock_rcv_peer_close | ( | struct cxgbi_sock * | ) |
Definition at line 685 of file libcxgbi.c.
void cxgbi_sock_rcv_wr_ack | ( | struct cxgbi_sock * | , |
unsigned | int, | ||
unsigned | int, | ||
int | |||
) |
Definition at line 749 of file libcxgbi.c.
unsigned int cxgbi_sock_select_mss | ( | struct cxgbi_sock * | , |
unsigned | int | ||
) |
Definition at line 824 of file libcxgbi.c.
void cxgbi_sock_skb_entail | ( | struct cxgbi_sock * | , |
struct sk_buff * | |||
) |
Definition at line 841 of file libcxgbi.c.