net/pfe: add MTU and MAC address set
[dpdk.git] / drivers / net / sfc / base / efx_sram.c
index 1f0ba0a..599bc5d 100644 (file)
@@ -25,9 +25,8 @@ efx_sram_buf_tbl_set(
        EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
        EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC);
 
-#if EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD
-       if (enp->en_family == EFX_FAMILY_HUNTINGTON ||
-           enp->en_family == EFX_FAMILY_MEDFORD) {
+#if EFX_OPTS_EF10()
+       if (EFX_FAMILY_IS_EF10(enp)) {
                /*
                 * FIXME: the efx_sram_buf_tbl_*() functionality needs to be
                 * pulled inside the Falcon/Siena queue create/destroy code,
@@ -39,7 +38,7 @@ efx_sram_buf_tbl_set(
 
                return (0);
        }
-#endif /* EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD */
+#endif /* EFX_OPTS_EF10() */
 
        if (stop >= EFX_BUF_TBL_SIZE) {
                rc = EFBIG;
@@ -147,9 +146,8 @@ efx_sram_buf_tbl_clear(
        EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
        EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC);
 
-#if EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD
-       if (enp->en_family == EFX_FAMILY_HUNTINGTON ||
-           enp->en_family == EFX_FAMILY_MEDFORD) {
+#if EFX_OPTS_EF10()
+       if (EFX_FAMILY_IS_EF10(enp)) {
                /*
                 * FIXME: the efx_sram_buf_tbl_*() functionality needs to be
                 * pulled inside the Falcon/Siena queue create/destroy code,
@@ -161,7 +159,7 @@ efx_sram_buf_tbl_clear(
 
                return;
        }
-#endif /* EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD */
+#endif /* EFX_OPTS_EF10() */
 
        EFSYS_ASSERT3U(stop, <, EFX_BUF_TBL_SIZE);