Commit beafd69
scsi: qla2xxx: Reduce fabric scan duplicate code
For fabric scan, current code uses switch scan opcode and flags as the
method to iterate through different commands to carry out the process.
This makes it hard to read. This patch convert those opcode and flags into
steps. In addition, this help reduce some duplicate code.
Consolidate routines that handle GPNFT & GNNFT.
Cc: stable@vger.kernel.org
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20240710171057.35066-10-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 348744f commit beafd69
File tree
5 files changed
+200
-269
lines changed- drivers/scsi/qla2xxx
5 files changed
+200
-269
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3309 | 3309 | | |
3310 | 3310 | | |
3311 | 3311 | | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
3312 | 3320 | | |
3313 | 3321 | | |
3314 | 3322 | | |
3315 | 3323 | | |
3316 | 3324 | | |
| 3325 | + | |
3317 | 3326 | | |
3318 | 3327 | | |
3319 | 3328 | | |
| |||
3539 | 3548 | | |
3540 | 3549 | | |
3541 | 3550 | | |
3542 | | - | |
3543 | | - | |
3544 | | - | |
| 3551 | + | |
| 3552 | + | |
3545 | 3553 | | |
3546 | 3554 | | |
3547 | 3555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
731 | | - | |
732 | | - | |
733 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| |||
0 commit comments