From: Bhanu Prakash Gollapudi Date: Fri, 27 May 2011 18:47:25 +0000 (-0700) Subject: bnx2fc: host stats show the link speed 'unknown' on NIC partitioned interfaces X-Git-Tag: v2.6.39-400.9.0~615^2~36 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bf817cce16957ade27450e33a15d0dbcc7491560;p=users%2Fjedix%2Flinux-maple.git bnx2fc: host stats show the link speed 'unknown' on NIC partitioned interfaces NIC partitioned interfaces reports the speed of 2500 which was not handled by the driver. Signed-off-by: Bhanu Prakash Gollapudi Signed-off-by: James Bottomley (cherry picked from commit a4dc08cecfdb3172be61227324a4d2c5fe2de9e5) --- diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index 7a16ca1c3ecf..a56d1dc8ff54 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c @@ -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;