NIC partitioned interfaces reports the speed of 2500 which was not handled by the driver. Also, removed unnecessary return for a void function. Signed-off-by: Bhanu Prakash Gollapudi <bprakash@xxxxxxxxxxxx> --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index e2e6475..754e9c6 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c @@ -677,10 +677,11 @@ static void bnx2fc_link_speed_update(struct fc_lport *lport) if (ecmd.speed == SPEED_1000) lport->link_speed = FC_PORTSPEED_1GBIT; - if (ecmd.speed == SPEED_10000) + else if (ecmd.speed == SPEED_2500) + lport->link_speed = FC_PORTSPEED_2GBIT; + else if (ecmd.speed == SPEED_10000) lport->link_speed = FC_PORTSPEED_10GBIT; } - return; } static int bnx2fc_link_ok(struct fc_lport *lport) { -- 1.7.0.6 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html