net/sfc: support API to negotiate delivery of Rx metadata
[dpdk.git] / drivers / net / sfc / sfc_mae.h
index 684f0da..d835056 100644 (file)
@@ -139,10 +139,17 @@ struct sfc_mae_counter_registry {
        uint32_t                        service_id;
 };
 
+/**
+ * MAE rules used to capture traffic generated by VFs and direct it to
+ * representors (one for each VF).
+ */
+#define SFC_MAE_NB_REPR_RULES_MAX      (64)
+
 /** Rules to forward traffic from PHY port to PF and from PF to PHY port */
 #define SFC_MAE_NB_SWITCHDEV_RULES     (2)
 /** Maximum required internal MAE rules */
-#define SFC_MAE_NB_RULES_MAX           (SFC_MAE_NB_SWITCHDEV_RULES)
+#define SFC_MAE_NB_RULES_MAX           (SFC_MAE_NB_SWITCHDEV_RULES + \
+                                        SFC_MAE_NB_REPR_RULES_MAX)
 
 struct sfc_mae_rule {
        efx_mae_match_spec_t            *spec;