Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c343a01c authored by kxie@chelsio.com's avatar kxie@chelsio.com Committed by James Bottomley
Browse files

[SCSI] cxgbi: set ulpmode only if digest is on



There is no need to set ulpmode on the tx skbs if no digest is enabled.

Signed-off-by: default avatarKaren Xie <kxie@chelsio.com>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 938abd84
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -1908,6 +1908,7 @@ EXPORT_SYMBOL_GPL(cxgbi_conn_alloc_pdu);

static inline void tx_skb_setmode(struct sk_buff *skb, int hcrc, int dcrc)
{
	if (hcrc || dcrc) {
		u8 submode = 0;

		if (hcrc)
@@ -1915,6 +1916,8 @@ static inline void tx_skb_setmode(struct sk_buff *skb, int hcrc, int dcrc)
		if (dcrc)
			submode |= 2;
		cxgbi_skcb_ulp_mode(skb) = (ULP2_MODE_ISCSI << 4) | submode;
	} else
		cxgbi_skcb_ulp_mode(skb) = 0;
}

int cxgbi_conn_init_pdu(struct iscsi_task *task, unsigned int offset,