From b971f847cd754bb75eb65bfcf60c750af67bedd2 Mon Sep 17 00:00:00 2001 From: Vasundhara Volam Date: Tue, 6 Aug 2013 09:27:15 +0530 Subject: be2net: Adding more speeds reported by get_settings The new speeds are supported by variants of the Skyhawk-R chip. Signed-off-by: Vasundhara Volam Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- drivers/net/ethernet/emulex/benet/be_cmds.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/net/ethernet/emulex/benet/be_cmds.c') diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c index 2bd2d1e4f9fe..ce15b1084ccb 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.c +++ b/drivers/net/ethernet/emulex/benet/be_cmds.c @@ -1464,6 +1464,12 @@ static int be_mac_to_link_speed(int mac_speed) return 1000; case PHY_LINK_SPEED_10GBPS: return 10000; + case PHY_LINK_SPEED_20GBPS: + return 20000; + case PHY_LINK_SPEED_25GBPS: + return 25000; + case PHY_LINK_SPEED_40GBPS: + return 40000; } return 0; } -- cgit v1.2.2