summaryrefslogtreecommitdiff
path: root/drivers/scsi/fnic/fnic_io.h
diff options
context:
space:
mode:
authorSatish Kharat <satishkh@cisco.com>2017-06-27 03:48:44 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2017-06-28 04:40:59 +0300
commitc22fa50b2d41f3091d2ab0acf60ffdedb7ccd765 (patch)
tree543dadccb5f185db3c46cb5c4204ca4478aa7a9d /drivers/scsi/fnic/fnic_io.h
parent43caa03fec79d062c5f7a959a823770d72717b24 (diff)
downloadlinux-c22fa50b2d41f3091d2ab0acf60ffdedb7ccd765.tar.xz
scsi: fnic: correct speed display and add support for 25,40 and 100G
Setting speed based on the vinc device parameter read during linkup. Also adding support to display 25,40 and 100G Signed-off-by: Satish Kharat <satishkh@cisco.com> Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fnic/fnic_io.h')
-rw-r--r--drivers/scsi/fnic/fnic_io.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/fnic/fnic_io.h b/drivers/scsi/fnic/fnic_io.h
index c35b8f1889ea..e0bc659ed71f 100644
--- a/drivers/scsi/fnic/fnic_io.h
+++ b/drivers/scsi/fnic/fnic_io.h
@@ -66,4 +66,13 @@ struct fnic_io_req {
struct completion *dr_done; /* completion for device reset */
};
+enum fnic_port_speeds {
+ DCEM_PORTSPEED_NONE = 0,
+ DCEM_PORTSPEED_1G = 1000,
+ DCEM_PORTSPEED_10G = 10000,
+ DCEM_PORTSPEED_40G = 40000,
+ DCEM_PORTSPEED_4x10G = 41000,
+ DCEM_PORTSPEED_25G = 25000,
+ DCEM_PORTSPEED_100G = 100000,
+};
#endif /* _FNIC_IO_H_ */