fcoe: use defines from ethtool for 20Gbit and 40Gbit speeds
authorJohannes Thumshirn <jthumshirn@suse.de>
Thu, 7 Jul 2016 13:41:58 +0000 (15:41 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 14 Jul 2016 02:25:44 +0000 (22:25 -0400)
Use defines from ethtool for 20Gbit and 40Gbit speeds instead of magic
numbers.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fcoe/fcoe_transport.c

index 641c60e8fda33b03a3f5f32b41cced7ac9eb8943..7028dd37e5dd4bc6ffe27d4f57d7f58336d4412c 100644 (file)
@@ -133,10 +133,10 @@ int fcoe_link_speed_update(struct fc_lport *lport)
                case SPEED_10000:
                        lport->link_speed = FC_PORTSPEED_10GBIT;
                        break;
-               case 20000:
+               case SPEED_20000:
                        lport->link_speed = FC_PORTSPEED_20GBIT;
                        break;
-               case 40000:
+               case SPEED_40000:
                        lport->link_speed = FC_PORTSPEED_40GBIT;
                        break;
                default: