else
encp->enc_filter_action_mark_max = 0;
+#if EFSYS_OPT_MAE
+ /*
+ * Indicate support for MAE.
+ * MAE is supported by Riverhead boards starting with R2,
+ * and it is required that FW is built with MAE support, too.
+ */
+ if (CAP_FLAGS3(req, MAE_SUPPORTED))
+ encp->enc_mae_supported = B_TRUE;
+ else
+ encp->enc_mae_supported = B_FALSE;
+#else
+ encp->enc_mae_supported = B_FALSE;
+#endif /* EFSYS_OPT_MAE */
+
#undef CAP_FLAGS1
#undef CAP_FLAGS2
+#undef CAP_FLAGS3
return (0);
uint32_t enc_mac_stats_nstats;
boolean_t enc_fec_counters;
boolean_t enc_hlb_counters;
+ /* NIC support for Match-Action Engine (MAE). */
+ boolean_t enc_mae_supported;
/* Firmware support for "FLAG" and "MARK" filter actions */
boolean_t enc_filter_action_flag_supported;
boolean_t enc_filter_action_mark_supported;
# endif
#endif /* EFSYS_OPT_DESC_PROXY */
+#if EFSYS_OPT_MAE
+# if !EFSYS_OPT_RIVERHEAD
+# error "MAE requires RIVERHEAD"
+# endif
+#endif /* EFSYS_OPT_MAE */
+
#endif /* _SYS_EFX_CHECK_H */
encp->enc_filter_action_mark_supported = B_FALSE;
encp->enc_filter_action_mark_max = 0;
+ encp->enc_mae_supported = B_FALSE;
+
return (0);
fail2:
#define EFSYS_OPT_DESC_PROXY 0
+#define EFSYS_OPT_MAE 0
+
/* ID */
typedef struct __efsys_identifier_s efsys_identifier_t;