aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.c58
1 files changed, 14 insertions, 44 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index 217a0ab06e85..bb158880685c 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -60,12 +60,6 @@ static char *dif_op_str[] = {
60 "PROT_WRITE_PASS", 60 "PROT_WRITE_PASS",
61}; 61};
62 62
63static char *dif_grd_str[] = {
64 "NO_GUARD",
65 "DIF_CRC",
66 "DIX_IP",
67};
68
69struct scsi_dif_tuple { 63struct scsi_dif_tuple {
70 __be16 guard_tag; /* Checksum */ 64 __be16 guard_tag; /* Checksum */
71 __be16 app_tag; /* Opaque storage */ 65 __be16 app_tag; /* Opaque storage */
@@ -4311,49 +4305,25 @@ lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)
4311 4305
4312 if (scsi_get_prot_op(cmnd) != SCSI_PROT_NORMAL) { 4306 if (scsi_get_prot_op(cmnd) != SCSI_PROT_NORMAL) {
4313 if (vport->phba->cfg_enable_bg) { 4307 if (vport->phba->cfg_enable_bg) {
4314 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, 4308 lpfc_printf_vlog(vport, KERN_INFO, LOG_BG,
4315 "9033 BLKGRD: rcvd protected cmd:%02x op=%s " 4309 "9033 BLKGRD: rcvd %s cmd:x%x "
4316 "guard=%s\n", cmnd->cmnd[0], 4310 "sector x%llx cnt %u pt %x\n",
4317 dif_op_str[scsi_get_prot_op(cmnd)], 4311 dif_op_str[scsi_get_prot_op(cmnd)],
4318 dif_grd_str[scsi_host_get_guard(shost)]); 4312 cmnd->cmnd[0],
4319 if (cmnd->cmnd[0] == READ_10) 4313 (unsigned long long)scsi_get_lba(cmnd),
4320 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, 4314 blk_rq_sectors(cmnd->request),
4321 "9035 BLKGRD: READ @ sector %llu, " 4315 (cmnd->cmnd[1]>>5));
4322 "cnt %u, rpt %d\n",
4323 (unsigned long long)scsi_get_lba(cmnd),
4324 blk_rq_sectors(cmnd->request),
4325 (cmnd->cmnd[1]>>5));
4326 else if (cmnd->cmnd[0] == WRITE_10)
4327 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
4328 "9036 BLKGRD: WRITE @ sector %llu, "
4329 "cnt %u, wpt %d\n",
4330 (unsigned long long)scsi_get_lba(cmnd),
4331 blk_rq_sectors(cmnd->request),
4332 (cmnd->cmnd[1]>>5));
4333 } 4316 }
4334
4335 err = lpfc_bg_scsi_prep_dma_buf(phba, lpfc_cmd); 4317 err = lpfc_bg_scsi_prep_dma_buf(phba, lpfc_cmd);
4336 } else { 4318 } else {
4337 if (vport->phba->cfg_enable_bg) { 4319 if (vport->phba->cfg_enable_bg) {
4338 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, 4320 lpfc_printf_vlog(vport, KERN_INFO, LOG_BG,
4339 "9038 BLKGRD: rcvd unprotected cmd:" 4321 "9038 BLKGRD: rcvd PROT_NORMAL cmd: "
4340 "%02x op=%s guard=%s\n", cmnd->cmnd[0], 4322 "x%x sector x%llx cnt %u pt %x\n",
4341 dif_op_str[scsi_get_prot_op(cmnd)], 4323 cmnd->cmnd[0],
4342 dif_grd_str[scsi_host_get_guard(shost)]); 4324 (unsigned long long)scsi_get_lba(cmnd),
4343 if (cmnd->cmnd[0] == READ_10)
4344 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
4345 "9040 dbg: READ @ sector %llu, "
4346 "cnt %u, rpt %d\n",
4347 (unsigned long long)scsi_get_lba(cmnd),
4348 blk_rq_sectors(cmnd->request), 4325 blk_rq_sectors(cmnd->request),
4349 (cmnd->cmnd[1]>>5)); 4326 (cmnd->cmnd[1]>>5));
4350 else if (cmnd->cmnd[0] == WRITE_10)
4351 lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
4352 "9041 dbg: WRITE @ sector %llu, "
4353 "cnt %u, wpt %d\n",
4354 (unsigned long long)scsi_get_lba(cmnd),
4355 blk_rq_sectors(cmnd->request),
4356 (cmnd->cmnd[1]>>5));
4357 } 4327 }
4358 err = lpfc_scsi_prep_dma_buf(phba, lpfc_cmd); 4328 err = lpfc_scsi_prep_dma_buf(phba, lpfc_cmd);
4359 } 4329 }