Skip to content

Commit 2cda90e

Browse files
Karan Tilak Kumarmartinkpetersen
authored andcommitted
scsi: fnic: Modify definitions to sync with VIC firmware
VIC firmware has updated definitions. Modify structure and definitions to sync with the latest VIC firmware. Reviewed-by: Sesidhar Baddela <sebaddel@cisco.com> Reviewed-by: Arulprabhu Ponnusamy <arulponn@cisco.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Karan Tilak Kumar <kartilak@cisco.com> Link: https://lore.kernel.org/r/20231211173617.932990-2-kartilak@cisco.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent b85ea95 commit 2cda90e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

drivers/scsi/fnic/vnic_scsi.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define VNIC_FNIC_RATOV_MAX 255000
2727

2828
#define VNIC_FNIC_MAXDATAFIELDSIZE_MIN 256
29-
#define VNIC_FNIC_MAXDATAFIELDSIZE_MAX 2112
29+
#define VNIC_FNIC_MAXDATAFIELDSIZE_MAX 2048
3030

3131
#define VNIC_FNIC_FLOGI_RETRIES_MIN 0
3232
#define VNIC_FNIC_FLOGI_RETRIES_MAX 0xffffffff
@@ -55,7 +55,7 @@
5555
#define VNIC_FNIC_PORT_DOWN_IO_RETRIES_MAX 255
5656

5757
#define VNIC_FNIC_LUNS_PER_TARGET_MIN 1
58-
#define VNIC_FNIC_LUNS_PER_TARGET_MAX 1024
58+
#define VNIC_FNIC_LUNS_PER_TARGET_MAX 4096
5959

6060
/* Device-specific region: scsi configuration */
6161
struct vnic_fc_config {
@@ -79,10 +79,19 @@ struct vnic_fc_config {
7979
u16 ra_tov;
8080
u16 intr_timer;
8181
u8 intr_timer_type;
82+
u8 intr_mode;
83+
u8 lun_queue_depth;
84+
u8 io_timeout_retry;
85+
u16 wq_copy_count;
8286
};
8387

8488
#define VFCF_FCP_SEQ_LVL_ERR 0x1 /* Enable FCP-2 Error Recovery */
8589
#define VFCF_PERBI 0x2 /* persistent binding info available */
8690
#define VFCF_FIP_CAPABLE 0x4 /* firmware can handle FIP */
8791

92+
#define VFCF_FC_INITIATOR 0x20 /* FC Initiator Mode */
93+
#define VFCF_FC_TARGET 0x40 /* FC Target Mode */
94+
#define VFCF_FC_NVME_INITIATOR 0x80 /* FC-NVMe Initiator Mode */
95+
#define VFCF_FC_NVME_TARGET 0x100 /* FC-NVMe Target Mode */
96+
8897
#endif /* _VNIC_SCSI_H_ */

0 commit comments

Comments
 (0)