scsi: iscsi: Merge suspend fields
Move the tx and rx suspend fields into one flags field. Link: https://lore.kernel.org/r/20220408001314.5014-8-michael.christie@oracle.com Tested-by: Manish Rangankar <mrangankar@marvell.com> Reviewed-by: Lee Duncan <lduncan@suse.com> Reviewed-by: Chris Leech <cleech@redhat.com> Signed-off-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
03690d8197
commit
5bd856256f
@@ -53,8 +53,10 @@ enum {
|
||||
|
||||
#define ISID_SIZE 6
|
||||
|
||||
/* Connection suspend "bit" */
|
||||
#define ISCSI_SUSPEND_BIT 1
|
||||
/* Connection flags */
|
||||
#define ISCSI_CONN_FLAG_SUSPEND_TX BIT(0)
|
||||
#define ISCSI_CONN_FLAG_SUSPEND_RX BIT(1)
|
||||
|
||||
|
||||
#define ISCSI_ITT_MASK 0x1fff
|
||||
#define ISCSI_TOTAL_CMDS_MAX 4096
|
||||
@@ -211,8 +213,7 @@ struct iscsi_conn {
|
||||
struct list_head cmdqueue; /* data-path cmd queue */
|
||||
struct list_head requeue; /* tasks needing another run */
|
||||
struct work_struct xmitwork; /* per-conn. xmit workqueue */
|
||||
unsigned long suspend_tx; /* suspend Tx */
|
||||
unsigned long suspend_rx; /* suspend Rx */
|
||||
unsigned long flags; /* ISCSI_CONN_FLAGs */
|
||||
|
||||
/* negotiated params */
|
||||
unsigned max_recv_dlength; /* initiator_max_recv_dsl*/
|
||||
|
||||
Reference in New Issue
Block a user