be2net: Adding more speeds reported by get_settings
authorVasundhara Volam <vasundhara.volam@emulex.com>
Tue, 6 Aug 2013 03:57:15 +0000 (09:27 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Aug 2013 17:39:04 +0000 (10:39 -0700)
The new speeds are supported by variants of the Skyhawk-R chip.

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h

index 2bd2d1e4f9fec64bc95540a98f90011bfa8e87ae..ce15b1084ccbbe273763b9bbd1673569eb1612f3 100644 (file)
@@ -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;
 }
index eb541f0dfee8f74646a4f6470e1eebeeeb944612..9b916086c3351b6147e0146fea9034d8e8531a80 100644 (file)
@@ -960,7 +960,10 @@ enum {
        PHY_LINK_SPEED_10MBPS = 0x1,
        PHY_LINK_SPEED_100MBPS = 0x2,
        PHY_LINK_SPEED_1GBPS = 0x3,
-       PHY_LINK_SPEED_10GBPS = 0x4
+       PHY_LINK_SPEED_10GBPS = 0x4,
+       PHY_LINK_SPEED_20GBPS = 0x5,
+       PHY_LINK_SPEED_25GBPS = 0x6,
+       PHY_LINK_SPEED_40GBPS = 0x7
 };
 
 struct be_cmd_resp_link_status {