mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[SCSI] libfc: recognize incoming FLOGI for point-to-point mode
When receiving a FLOGI request from a point-to-point peer, the D_ID of 0xfffffe was not recognized as belonging to one of the lports, so it was dropped. Change fc_vport_id_lookup() to treat d_id 0xfffffe as a match. Signed-off-by: Joe Eykholt <[email protected]> Signed-off-by: Robert Love <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
7d65b0df6c
commit
f4568b8b97
1 changed files with 3 additions and 0 deletions
|
|
@ -72,6 +72,9 @@ struct fc_lport *fc_vport_id_lookup(struct fc_lport *n_port, u32 port_id)
|
|||
if (fc_host_port_id(n_port->host) == port_id)
|
||||
return n_port;
|
||||
|
||||
if (port_id == FC_FID_FLOGI)
|
||||
return n_port; /* for point-to-point */
|
||||
|
||||
mutex_lock(&n_port->lp_mutex);
|
||||
list_for_each_entry(vn_port, &n_port->vports, list) {
|
||||
if (fc_host_port_id(vn_port->host) == port_id) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue