lib/iscsi: Rename PDU handling for SNACK Request

Rename iscsi_op_snack() to iscsi_pdu_hdr_op_snack() because SNACK
Request PDU has only header and doesn't have PDU payload handling.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I4d236c7963588729c32566e2be80db899edd2828
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471012
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
Shuhei Matsumoto 2019-10-17 07:27:29 +09:00 committed by Jim Harris
parent 83249da4a8
commit c53e1e0d84

View File

@ -4323,7 +4323,7 @@ reject_return:
/* This function is used to handle the snack request from the initiator */
static int
iscsi_op_snack(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pdu)
iscsi_pdu_hdr_op_snack(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pdu)
{
struct iscsi_bhs_snack_req *reqh;
struct spdk_iscsi_task *task;
@ -4705,7 +4705,7 @@ iscsi_execute(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pdu)
break;
case ISCSI_OP_SNACK:
rc = iscsi_op_snack(conn, pdu);
rc = iscsi_pdu_hdr_op_snack(conn, pdu);
break;
default: