]> git.karo-electronics.de Git - linux-beck.git/commitdiff
scsi_transport_iscsi: Add 25G and 40G speed definition
authorJitendra Bhivare <jitendra.bhivare@avagotech.com>
Wed, 20 Jan 2016 08:40:57 +0000 (14:10 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
iscsi_port_speed and iscsi_port_speed_names have new entries for
25Gbps and 40Gbps link speeds.

Signed-off-by: Jitendra Bhivare <jitendra.bhivare@avagotech.com>
Reviewed-by: Hannes Reinicke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_iscsi.c
include/scsi/iscsi_if.h

index e4b3d8f4fd85e25f09c19af401476a261d457b49..441481623fb9ca24f198c164e0372b59ae5e30af 100644 (file)
@@ -4308,6 +4308,8 @@ static const struct {
        {ISCSI_PORT_SPEED_100MBPS,      "100 Mbps" },
        {ISCSI_PORT_SPEED_1GBPS,        "1 Gbps" },
        {ISCSI_PORT_SPEED_10GBPS,       "10 Gbps" },
+       {ISCSI_PORT_SPEED_25GBPS,       "25 Gbps" },
+       {ISCSI_PORT_SPEED_40GBPS,       "40 Gbps" },
 };
 
 char *iscsi_get_port_speed_name(struct Scsi_Host *shost)
index 95ed9424a11af26d21ba83865386d9e1e573231c..d66c07077d687f9dff63628b56e7d874f97fe5ea 100644 (file)
@@ -724,6 +724,8 @@ enum iscsi_port_speed {
        ISCSI_PORT_SPEED_100MBPS        = 0x4,
        ISCSI_PORT_SPEED_1GBPS          = 0x8,
        ISCSI_PORT_SPEED_10GBPS         = 0x10,
+       ISCSI_PORT_SPEED_25GBPS         = 0x20,
+       ISCSI_PORT_SPEED_40GBPS         = 0x40,
 };
 
 /* iSCSI port state */