scsi: lpfc: Extend the RDF FPIN Registration descriptor for additional events
Currently the driver registers for Link Integrity events only. This patch adds registration for the following FPIN types: - Delivery Notifications - Congestion Notification - Peer Congestion Notification Link: https://lore.kernel.org/r/20200828175332.130300-4-james.smart@broadcom.com Co-developed-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
7b08e89f98
commit
441f6b5b09
@ -3517,6 +3517,9 @@ lpfc_issue_els_rdf(struct lpfc_vport *vport, uint8_t retry)
|
||||
FC_TLV_DESC_LENGTH_FROM_SZ(prdf->reg_d1));
|
||||
prdf->reg_d1.reg_desc.count = cpu_to_be32(ELS_RDF_REG_TAG_CNT);
|
||||
prdf->reg_d1.desc_tags[0] = cpu_to_be32(ELS_DTAG_LNK_INTEGRITY);
|
||||
prdf->reg_d1.desc_tags[1] = cpu_to_be32(ELS_DTAG_DELIVERY);
|
||||
prdf->reg_d1.desc_tags[2] = cpu_to_be32(ELS_DTAG_PEER_CONGEST);
|
||||
prdf->reg_d1.desc_tags[3] = cpu_to_be32(ELS_DTAG_CONGESTION);
|
||||
|
||||
lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_ELS_CMD,
|
||||
"Issue RDF: did:x%x",
|
||||
|
@ -4800,7 +4800,7 @@ struct send_frame_wqe {
|
||||
uint32_t fc_hdr_wd5; /* word 15 */
|
||||
};
|
||||
|
||||
#define ELS_RDF_REG_TAG_CNT 1
|
||||
#define ELS_RDF_REG_TAG_CNT 4
|
||||
struct lpfc_els_rdf_reg_desc {
|
||||
struct fc_df_desc_fpin_reg reg_desc; /* descriptor header */
|
||||
__be32 desc_tags[ELS_RDF_REG_TAG_CNT];
|
||||
|
Loading…
Reference in New Issue
Block a user