net/dpaa2: add support for tail drop on queue
[dpdk.git] / drivers / net / dpaa2 / dpaa2_ethdev.h
index e7728ba..3254b99 100644 (file)
  */
 #define CONG_EXIT_TX_THRESHOLD    (24 * 1024)
 
+/* RX queue tail drop threshold
+ * currently considering 32 KB packets
+ */
+#define CONG_THRESHOLD_RX_Q  (32 * 1024)
+
 /* Size of the input SMMU mapped memory required by MC */
 #define DIST_PARAM_IOVA_SIZE 256
 
@@ -64,6 +69,9 @@
  */
 #define DPAA2_TX_CGR_SUPPORT   0x01
 
+/* Disable RX tail drop, default is enable */
+#define DPAA2_RX_TAILDROP_OFF  0x04
+
 struct dpaa2_dev_priv {
        void *hw;
        int32_t hw_id;