diff options
author | Saurav Kashyap <skashyap@marvell.com> | 2019-08-23 11:52:37 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-30 00:44:22 +0200 |
commit | 931285e0123c4f380a9e2ff06434c8307b92b726 (patch) | |
tree | 000f23eb6a96a809788a29bdcfdc84a56c22efb1 /drivers/scsi/qedf | |
parent | scsi: qedf: Interpret supported caps value correctly (diff) | |
download | linux-931285e0123c4f380a9e2ff06434c8307b92b726.tar.xz linux-931285e0123c4f380a9e2ff06434c8307b92b726.zip |
scsi: qedf: Add support for 20 Gbps speed
The current code doeesn't support 20Gbps speed for current and supported
speed. Add support for it.
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedf')
-rw-r--r-- | drivers/scsi/qedf/qedf_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 995fd32c7335..50b1fa8740da 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -480,6 +480,9 @@ static void qedf_update_link_speed(struct qedf_ctx *qedf, case 100000: lport->link_speed = FC_PORTSPEED_100GBIT; break; + case 20000: + lport->link_speed = FC_PORTSPEED_20GBIT; + break; default: lport->link_speed = FC_PORTSPEED_UNKNOWN; break; @@ -521,6 +524,8 @@ static void qedf_update_link_speed(struct qedf_ctx *qedf, (link->supported_caps & QED_LM_100000baseLR4_ER4_Full_BIT)) { lport->link_supported_speeds |= FC_PORTSPEED_100GBIT; } + if (link->supported_caps & QED_LM_20000baseKR2_Full_BIT) + lport->link_supported_speeds |= FC_PORTSPEED_20GBIT; fc_host_supported_speeds(lport->host) = lport->link_supported_speeds; } |