lpfc: Check for active portpeerbeacon.
LCB requests to set Beacon would fail if the beacon was already enabled internally as the mailbox command used to query the state failes with an already-set status. Correct by enhancing the check so we don't fail if if the already set status comes back. Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com> Signed-off-by: James Smart <james.smart@avagotech.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
This commit is contained in:

committed by
James Bottomley

parent
641c43cc69
commit
481ad96799
@@ -1943,6 +1943,12 @@ struct lpfc_mbx_redisc_fcf_tbl {
|
||||
#define STATUS_FCF_IN_USE 0x3a
|
||||
#define STATUS_FCF_TABLE_EMPTY 0x43
|
||||
|
||||
/*
|
||||
* Additional status field for embedded SLI_CONFIG mailbox
|
||||
* command.
|
||||
*/
|
||||
#define ADD_STATUS_OPERATION_ALREADY_ACTIVE 0x67
|
||||
|
||||
struct lpfc_mbx_sli4_config {
|
||||
struct mbox_header header;
|
||||
};
|
||||
|
Reference in New Issue
Block a user