scsi: cxgb4i: add support for iSCSI segmentation offload
Subsystems (3)
Varun Prakash
maintainerPATCH 1/1 scsi: cxgb4i: add support for iSCSI segmentation offload
T5/T6 adapters support iSCSI segmentation offload. To transmit iSCSI PDUs using ISO driver provides iSCSI header and data scatterlist to the adapter, adapter forms multiple iSCSI PDUs and transmits them.
Signed-off-by Varun Prakash <[email protected]>
--- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 4 +- drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 246 ++++++++++---- drivers/scsi/cxgbi/libcxgbi.c | 665 +++++++++++++++++++++++++++---------- drivers/scsi/cxgbi/libcxgbi.h | 46 ++- 4 files changed, 728 insertions(+), 233 deletions(-)
drivers/scsi/cxgbi/cxgb3i/cxgb3i.c +2 -2
@@ -361,7 +361,7 @@ static inline void make_tx_data_wr(struct cxgbi_sock *csk, struct sk_buff *skb,/* len includes the length of any HW ULP additions */ req->len =htonl (len);/* V_TX_ULP_SUBMODE sets both the mode and submode */ - req->flags =htonl (V_TX_ULP_SUBMODE (cxgbi_skcb_ulp_mode (skb)) | + req->flags =htonl (V_TX_ULP_SUBMODE (cxgbi_skcb_tx_ulp_mode (skb)) |V_TX_SHOVE ((skb_peek (&csk->write_queue) ?0 :1 ))); req->sndseq =htonl (csk->snd_nxt); req->param =htonl (V_TX_PORT (l2t->smt_idx));
@@ -442,7 +442,7 @@ static int push_tx_frames(struct cxgbi_sock *csk, int req_completion) req_completion =1 ; csk->wr_una_cred =0 ; } - len +=cxgbi_ulp_extra_len (cxgbi_skcb_ulp_mode (skb)); + len +=cxgbi_ulp_extra_len (cxgbi_skcb_tx_ulp_mode (skb));make_tx_data_wr (csk, skb, len, req_completion); csk->snd_nxt += len;cxgbi_skcb_clear_flag (skb,SKCBF_TX_NEED_HDR );
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c +186 -60
331 lines not on this page · raw message
drivers/scsi/cxgbi/libcxgbi.c +498 -167
861 lines not on this page · raw message
drivers/scsi/cxgbi/libcxgbi.h +42 -4
116 lines not on this page · raw message
Signature · 1 line
2.0.2
Martin K. Petersen
AppliedQuoted 4 lines · Varun Prakash
T5/T6 adapters support iSCSI segmentation offload. To transmit iSCSI PDUs using ISO driver provides iSCSI header and data scatterlist to the adapter, adapter forms multiple iSCSI PDUs and transmits them.
Applied to 5.9/scsi-queue, thanks!
[1/1] scsi: cxgb4i: Add support for iSCSI segmentation offload
https://git.kernel.org/mkp/scsi/c/e33c2482289b
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering