OSDN Git Service

scsi_transport_fc: Add support for 25Gbit speed
authorJames Smart <james.smart@emulex.com>
Thu, 2 Apr 2015 19:50:52 +0000 (15:50 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 10 Apr 2015 14:40:32 +0000 (07:40 -0700)
Signed-off-by: James Smart <james.smart@emulex.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/scsi_transport_fc.c
include/scsi/scsi_transport_fc.h

index 5d6f348..24eaaf6 100644 (file)
@@ -265,6 +265,7 @@ static const struct {
        { FC_PORTSPEED_40GBIT,          "40 Gbit" },
        { FC_PORTSPEED_50GBIT,          "50 Gbit" },
        { FC_PORTSPEED_100GBIT,         "100 Gbit" },
+       { FC_PORTSPEED_25GBIT,          "25 Gbit" },
        { FC_PORTSPEED_NOT_NEGOTIATED,  "Not Negotiated" },
 };
 fc_bitfield_name_search(port_speed, fc_port_speed_names)
index 007a0bc..784bc2c 100644 (file)
@@ -135,6 +135,7 @@ enum fc_vport_state {
 #define FC_PORTSPEED_40GBIT            0x100
 #define FC_PORTSPEED_50GBIT            0x200
 #define FC_PORTSPEED_100GBIT           0x400
+#define FC_PORTSPEED_25GBIT            0x800
 #define FC_PORTSPEED_NOT_NEGOTIATED    (1 << 15) /* Speed not established */
 
 /*