net/sfc/base: handle new speeds in link events
authorAndy Moreton <amoreton@solarflare.com>
Tue, 20 Feb 2018 07:33:53 +0000 (07:33 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:42 +0000 (14:08 +0200)
Signed-off-by: Andy Moreton <amoreton@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_phy.c

index e05fe2b..035099f 100644 (file)
@@ -149,9 +149,18 @@ ef10_phy_link_ev(
        case MCDI_EVENT_LINKCHANGE_SPEED_10G:
                speed = 10000;
                break;
+       case MCDI_EVENT_LINKCHANGE_SPEED_25G:
+               speed = 25000;
+               break;
        case MCDI_EVENT_LINKCHANGE_SPEED_40G:
                speed = 40000;
                break;
+       case MCDI_EVENT_LINKCHANGE_SPEED_50G:
+               speed = 50000;
+               break;
+       case MCDI_EVENT_LINKCHANGE_SPEED_100G:
+               speed = 100000;
+               break;
        default:
                speed = 0;
                break;