[SCSI] bnx2fc: host stats show the link speed 'unknown' on NIC partitioned interfaces
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 27 May 2011 18:47:25 +0000 (11:47 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Jun 2011 15:49:26 +0000 (10:49 -0500)
NIC partitioned interfaces reports the speed of 2500 which was not handled by
the driver.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c

index ab255fb..8f894e4 100644 (file)
@@ -679,6 +679,9 @@ static void bnx2fc_link_speed_update(struct fc_lport *lport)
                case SPEED_1000:
                        lport->link_speed = FC_PORTSPEED_1GBIT;
                        break;
+               case SPEED_2500:
+                       lport->link_speed = FC_PORTSPEED_2GBIT;
+                       break;
                case SPEED_10000:
                        lport->link_speed = FC_PORTSPEED_10GBIT;
                        break;