diff options
Diffstat (limited to 'drivers/scsi/bfa/bfad_attr.c')
-rw-r--r-- | drivers/scsi/bfa/bfad_attr.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfad_attr.c b/drivers/scsi/bfa/bfad_attr.c index 8b6c6bf7837e..b83927440171 100644 --- a/drivers/scsi/bfa/bfad_attr.c +++ b/drivers/scsi/bfa/bfad_attr.c | |||
@@ -426,6 +426,23 @@ bfad_im_vport_create(struct fc_vport *fc_vport, bool disable) | |||
426 | vshost = vport->drv_port.im_port->shost; | 426 | vshost = vport->drv_port.im_port->shost; |
427 | fc_host_node_name(vshost) = wwn_to_u64((u8 *)&port_cfg.nwwn); | 427 | fc_host_node_name(vshost) = wwn_to_u64((u8 *)&port_cfg.nwwn); |
428 | fc_host_port_name(vshost) = wwn_to_u64((u8 *)&port_cfg.pwwn); | 428 | fc_host_port_name(vshost) = wwn_to_u64((u8 *)&port_cfg.pwwn); |
429 | fc_host_supported_classes(vshost) = FC_COS_CLASS3; | ||
430 | |||
431 | memset(fc_host_supported_fc4s(vshost), 0, | ||
432 | sizeof(fc_host_supported_fc4s(vshost))); | ||
433 | |||
434 | /* For FCP type 0x08 */ | ||
435 | if (supported_fc4s & BFA_LPORT_ROLE_FCP_IM) | ||
436 | fc_host_supported_fc4s(vshost)[2] = 1; | ||
437 | |||
438 | /* For fibre channel services type 0x20 */ | ||
439 | fc_host_supported_fc4s(vshost)[7] = 1; | ||
440 | |||
441 | fc_host_supported_speeds(vshost) = | ||
442 | bfad_im_supported_speeds(&bfad->bfa); | ||
443 | fc_host_maxframe_size(vshost) = | ||
444 | bfa_fcport_get_maxfrsize(&bfad->bfa); | ||
445 | |||
429 | fc_vport->dd_data = vport; | 446 | fc_vport->dd_data = vport; |
430 | vport->drv_port.im_port->fc_vport = fc_vport; | 447 | vport->drv_port.im_port->fc_vport = fc_vport; |
431 | } else if (rc == BFA_STATUS_INVALID_WWN) | 448 | } else if (rc == BFA_STATUS_INVALID_WWN) |