12#ifndef _PACKET_NVME_H_
13#define _PACKET_NVME_H_
15#define NVME_CMD_SIZE 64
16#define NVME_CQE_SIZE 16
18#define NVME_FABRIC_OPC 0x7F
19#define NVME_FCTYPE_PROP_SET 0x0
20#define NVME_FCTYPE_CONNECT 0x1
21#define NVME_FCTYPE_PROP_GET 0x4
22#define NVME_FCTYPE_AUTH_SEND 0x5
23#define NVME_FCTYPE_AUTH_RECV 0x6
24#define NVME_FCTYPE_DISCONNECT 0x8
36#define NVME_CMD_MAX_TRS (16)
42 uint32_t data_req_pkt_num;
43 uint32_t data_tr_pkt_num[NVME_CMD_MAX_TRS];
44 uint32_t first_tr_psn;
59 unsigned tr_sub_entries;
84extern int hf_nvmeof_cmd_pkt;
85extern int hf_nvmeof_data_req;
87const char *get_nvmeof_cmd_string(uint8_t fctype);
90nvme_publish_qid(
proto_tree *tree,
int field_index, uint16_t qid);
109 uint32_t pkt_no,
bool zero_ok);
116 void *ctx, uint16_t cmd_id);
117void* nvme_lookup_cmd_in_pending_list(
struct nvme_q_ctx *q_ctx, uint16_t cmd_id);
146 struct nvme_cmd_ctx *cmd_ctx, uint32_t rkey, uint32_t frame_num);
148nvme_lookup_data_tr_pkt(
struct nvme_q_ctx *q_ctx,
149 uint32_t rkey, uint32_t frame_num);
152nvme_add_data_tr_off(
struct nvme_q_ctx *q_ctx, uint32_t off, uint32_t frame_num);
155nvme_lookup_data_tr_off(
struct nvme_q_ctx *q_ctx, uint32_t frame_num);
158nvme_add_cmd_cqe_to_done_list(
struct nvme_q_ctx *q_ctx,
186nvme_get_opcode_string(uint8_t opcode, uint16_t qid);
194nvme_is_io_queue_opcode(uint8_t opcode);
Definition packet_info.h:43
Definition wmem_tree-int.h:48
Definition packet-nvme.h:120
Definition packet-nvme.h:38
Definition packet-nvme.h:27
Definition tvbuff-int.h:35