Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68919
b: refs/heads/master
c: 26ff776
h: refs/heads/master
i:
  68917: 65f5dde
  68915: b2b3d23
  68911: dc9b71d
v: v3
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Oct 12, 2007
1 parent a033a06 commit caf6c48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 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: 700ca0e7016008f65f75c2629e309fc03347c856
refs/heads/master: 26ff776d1dd9147eb658c55f1df42c2c232036b5
34 changes: 2 additions & 32 deletions trunk/drivers/scsi/qla2xxx/qla_mid.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ qla24xx_find_vhost_by_name(scsi_qla_host_t *ha, uint8_t *port_name)
*
* Context:
*/
void
static void
qla2x00_mark_vp_devices_dead(scsi_qla_host_t *vha)
{
fc_port_t *fcport;
Expand Down Expand Up @@ -179,37 +179,7 @@ qla24xx_enable_vp(scsi_qla_host_t *vha)
return 1;
}

/**
* qla24xx_modify_vport() - Modifies the virtual fabric port's configuration
* @ha: HA context
* @vp: pointer to buffer of virtual port parameters.
* @ret_code: return error code:
*
* Returns the virtual port id, or MAX_VSAN_ID, if couldn't create.
*/
uint32_t
qla24xx_modify_vhba(scsi_qla_host_t *ha, vport_params_t *vp, uint32_t *vp_id)
{
scsi_qla_host_t *vha;

vha = qla24xx_find_vhost_by_name(ha, vp->port_name);
if (!vha) {
*vp_id = MAX_NUM_VPORT_LOOP;
return VP_RET_CODE_WWPN;
}

if (qla24xx_enable_vp(vha)) {
scsi_host_put(vha->host);
qla2x00_mem_free(vha);
*vp_id = MAX_NUM_VPORT_LOOP;
return VP_RET_CODE_RESOURCES;
}

*vp_id = vha->vp_idx;
return VP_RET_CODE_OK;
}

void
static void
qla24xx_configure_vp(scsi_qla_host_t *vha)
{
struct fc_vport *fc_vport;
Expand Down

0 comments on commit caf6c48

Please sign in to comment.