Commit 4cbfea88 authored by Adam Radford's avatar Adam Radford Committed by Christoph Hellwig

megaraid_sas: Fix LD/VF affiliation parsing

The following patch for megaraid_sas fixes the LD/VF affiliation policy parsing
code to account for LD targetId's and Hidden LD's (not yet affiliated with any
Virtual Functions).  This also breaks megasas_get_ld_vf_affiliation() into 2
separate functions:  megasas_get_ld_vf_affiliation_111() and
megasas_get_ld_Vf_affiliation_12() to reduce indentation levels.
Signed-off-by: default avatarAdam Radford <aradford@gmail.com>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent e46b0344
...@@ -1661,6 +1661,7 @@ struct MR_LD_VF_AFFILIATION { ...@@ -1661,6 +1661,7 @@ struct MR_LD_VF_AFFILIATION {
/* Plasma 1.11 FW backward compatibility structures */ /* Plasma 1.11 FW backward compatibility structures */
#define IOV_111_OFFSET 0x7CE #define IOV_111_OFFSET 0x7CE
#define MAX_VIRTUAL_FUNCTIONS 8 #define MAX_VIRTUAL_FUNCTIONS 8
#define MR_LD_ACCESS_HIDDEN 15
struct IOV_111 { struct IOV_111 {
u8 maxVFsSupported; u8 maxVFsSupported;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment