summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fnic/fnic_main.c
diff options
context:
space:
mode:
authorSatish Kharat <satishkh@cisco.com>2019-01-15 02:09:20 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-01-23 03:18:33 +0100
commitc01461a6d7b35c9ccc4621332d4db6b029ffb006 (patch)
tree2d8649b358ae86eb1441245eef1d9b17199cf35a /drivers/scsi/fnic/fnic_main.c
parentscsi: core: Remove an atomic instruction from the hot path (diff)
downloadlinux-c01461a6d7b35c9ccc4621332d4db6b029ffb006.tar.xz
linux-c01461a6d7b35c9ccc4621332d4db6b029ffb006.zip
scsi: fnic: support to display 20G port speed
This patch is to add fnic 20G port speed display in sysfs. [mkp: typo] Signed-off-by: Satish Kharat <satishkh@cisco.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fnic/fnic_main.c')
-rw-r--r--drivers/scsi/fnic/fnic_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c
index 5b3534b0deda..6aefedd1e669 100644
--- a/drivers/scsi/fnic/fnic_main.c
+++ b/drivers/scsi/fnic/fnic_main.c
@@ -178,6 +178,9 @@ static void fnic_get_host_speed(struct Scsi_Host *shost)
case DCEM_PORTSPEED_10G:
fc_host_speed(shost) = FC_PORTSPEED_10GBIT;
break;
+ case DCEM_PORTSPEED_20G:
+ fc_host_speed(shost) = FC_PORTSPEED_20GBIT;
+ break;
case DCEM_PORTSPEED_25G:
fc_host_speed(shost) = FC_PORTSPEED_25GBIT;
break;