net/sfc/base: add Medford2 support to MON module
authorAndy Moreton <amoreton@solarflare.com>
Tue, 20 Feb 2018 07:33:40 +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/mcdi_mon.c

index e4de0da..0e44577 100644 (file)
@@ -476,6 +476,11 @@ mcdi_mon_cfg_build(
        case EFX_FAMILY_MEDFORD:
                encp->enc_mon_type = EFX_MON_SFC92X0;
                break;
+#endif
+#if EFSYS_OPT_MEDFORD2
+       case EFX_FAMILY_MEDFORD2:
+               encp->enc_mon_type = EFX_MON_SFC92X0;
+               break;
 #endif
        default:
                rc = EINVAL;