linux/drivers/infiniband/ulp/isert/ib_isert.h

/* SPDX-License-Identifier: GPL-2.0 */
#include <linux/socket.h>
#include <linux/in.h>
#include <linux/in6.h>
#include <rdma/ib_verbs.h>
#include <rdma/rdma_cm.h>
#include <rdma/rw.h>
#include <scsi/iser.h>


#define DRV_NAME
#define PFX

#define isert_dbg(fmt, arg...)

#define isert_warn(fmt, arg...)

#define isert_info(fmt, arg...)

#define isert_err(fmt, arg...)

/* Constant PDU lengths calculations */
#define ISER_HEADERS_LEN
#define ISER_RX_PAYLOAD_SIZE

/* QP settings */
/* Maximal bounds on received asynchronous PDUs */
#define ISERT_MAX_TX_MISC_PDUS

#define ISERT_MAX_RX_MISC_PDUS

#define ISCSI_DEF_XMIT_CMDS_MAX

#define ISERT_QP_MAX_RECV_DTOS

#define ISERT_MIN_POSTED_RX

#define ISERT_QP_MAX_REQ_DTOS

/*
 * RX size is default of 8k plus headers, but data needs to align to
 * 512 boundary, so use 1024 to have the extra space for alignment.
 */
#define ISER_RX_SIZE

/* Minimum I/O size is 512KB */
#define ISCSI_ISER_MIN_SG_TABLESIZE

/* Maximum support is 16MB I/O size */
#define ISCSI_ISER_MAX_SG_TABLESIZE

enum isert_desc_type {};

enum iser_conn_state {};

struct iser_rx_desc {};

static inline struct iser_rx_desc *cqe_to_rx_desc(struct ib_cqe *cqe)
{}

static void *isert_get_iser_hdr(struct iser_rx_desc *desc)
{}

static size_t isert_get_hdr_offset(struct iser_rx_desc *desc)
{}

static void *isert_get_iscsi_hdr(struct iser_rx_desc *desc)
{}

static void *isert_get_data(struct iser_rx_desc *desc)
{}

struct iser_tx_desc {} __packed;

static inline struct iser_tx_desc *cqe_to_tx_desc(struct ib_cqe *cqe)
{}

struct isert_cmd {};

static inline struct isert_cmd *tx_desc_to_cmd(struct iser_tx_desc *desc)
{}

struct isert_device;

struct isert_conn {};

struct isert_device {};

struct isert_np {};