mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 03:31:26 +00:00
qla2x00t-32gbit: Rework key encoding in qlt_find_host_by_d_id()
Use the same approach for encoding the destination ID as the approach used by qlt_update_vp_map(). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8350 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -213,16 +213,14 @@ struct scsi_qla_host *qlt_find_host_by_d_id(struct scsi_qla_host *vha,
|
||||
be_id_t d_id)
|
||||
{
|
||||
struct scsi_qla_host *host;
|
||||
uint32_t key = 0;
|
||||
uint32_t key;
|
||||
|
||||
if (vha->d_id.b.area == d_id.area &&
|
||||
vha->d_id.b.domain == d_id.domain &&
|
||||
vha->d_id.b.al_pa == d_id.al_pa)
|
||||
return vha;
|
||||
|
||||
key = d_id.domain << 16;
|
||||
key |= d_id.area << 8;
|
||||
key |= d_id.al_pa;
|
||||
key = be_to_port_id(d_id).b24;
|
||||
|
||||
host = btree_lookup32(&vha->hw->tgt.host_map, key);
|
||||
if (!host)
|
||||
|
||||
Reference in New Issue
Block a user