Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161044
b: refs/heads/master
c: 55903b9
h: refs/heads/master
v: v3
  • Loading branch information
Santosh Vernekar authored and James Bottomley committed Aug 22, 2009
1 parent bd228fe commit d9c419d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9764ff8807a2455218e2ec5024e823cc09b01906
refs/heads/master: 55903b9d152e91d4df2ab242c33efbd33e03e499
24 changes: 20 additions & 4 deletions trunk/drivers/scsi/qla2xxx/qla_isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,26 @@ qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb)
break;

case MBA_PORT_UPDATE: /* Port database update */
/* Only handle SCNs for our Vport index. */
if (mb[1] != 0xffff &&
vha->vp_idx && vha->vp_idx != (mb[3] & 0xff))
break;
/*
* Handle only global and vn-port update events
*
* Relevant inputs:
* mb[1] = N_Port handle of changed port
* OR 0xffff for global event
* mb[2] = New login state
* 7 = Port logged out
* mb[3] = LSB is vp_idx, 0xff = all vps
*
* Skip processing if:
* Event is global, vp_idx is NOT all vps,
* vp_idx does not match
* Event is not global, vp_idx does not match
*/
if ((mb[1] == 0xffff && (mb[3] & 0xff) != 0xff)
|| (mb[1] != 0xffff)) {
if (vha->vp_idx != (mb[3] & 0xff))
break;
}

/* Global event -- port logout or port unavailable. */
if (mb[1] == 0xffff && mb[2] == 0x7) {
Expand Down

0 comments on commit d9c419d

Please sign in to comment.