iscsi: Add Serial Number Arithmetic LT and GT into iscsi_proto.h
authorNicholas Bellinger <nab@linux-iscsi.org>
Tue, 22 Mar 2011 21:14:09 +0000 (14:14 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 25 Jul 2011 07:48:08 +0000 (07:48 +0000)
commit8304bbceee505742925b487fd8ea56e1f8b4b805
tree4776c640eb8aab7e8a957f9890a7e49a48855d2d
parent55bdabdf41b6ee99e22e9d78a895b001fb1d852e
iscsi: Add Serial Number Arithmetic LT and GT into iscsi_proto.h

This patch moves the iscsi_sna_lt() and iscsi_sna_lte(), along with
iscsi_sna_gt() and iscsi_sna_gte() from iscsi_target_mod into
static inlines inside of include/scsi/iscsi_proto.h

This patch also includes the ISCSI_HDR_LEN and ISCSI_CRC_LEN
definitions.

(Added JesperJ simpliciation for iscsi_sna_* usage)

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
drivers/scsi/libiscsi.c
include/scsi/iscsi_proto.h