qla2x00t-32gbit: Port to Linux kernel v6.3

Support for the following fc changes in the Linux kernel v6.3:
- 64fd2ba977b1 ("scsi: scsi_transport_fc: Add an additional flag to fc_host_fpin_rcv()")
This commit is contained in:
Gleb Chesnokov
2023-03-06 20:30:43 +03:00
parent c9476f104c
commit 906b1c8368
2 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ qla27xx_process_purex_fpin(struct scsi_qla_host *vha, struct purex_item *item)
ql_dump_buffer(ql_dbg_init + ql_dbg_verbose, vha, 0x508f,
pkt, pkt_size);
fc_host_fpin_rcv(vha->host, pkt_size, (char *)pkt);
fc_host_fpin_rcv(vha->host, pkt_size, (char *)pkt, 0);
}
const char *const port_state_str[] = {
+17 -5
View File
@@ -1642,17 +1642,29 @@ enum {
#define wwn_to_u64(wwn) get_unaligned_be64(wwn)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)
/*
* See also commit c39e0af64bce ("scsi: scsi_transport_fc: Add FPIN fc event
* codes") # v5.2
* See also commit 64fd2ba977b1 ("scsi: scsi_transport_fc: Add an additional
* flag to fc_host_fpin_rcv()") # v6.3
*/
static inline void
fc_host_fpin_rcv_backport(struct Scsi_Host *shost, u32 fpin_len, char *fpin_buf,
u8 event_acknowledge)
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) && \
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 8 || \
RHEL_MAJOR -0 == 8 && RHEL_MINOR -0 < 2)
static inline void
fc_host_fpin_rcv(struct Scsi_Host *shost, u32 fpin_len, char *fpin_buf)
{
/*
* See also commit c39e0af64bce ("scsi: scsi_transport_fc: Add FPIN fc event
* codes") # v5.2
*/
return;
#else
return fc_host_fpin_rcv(shost, fpin_len, fpin_buf);
#endif
}
#define fc_host_fpin_rcv fc_host_fpin_rcv_backport
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)