i40e: fix alignment of HW descriptors number
[dpdk.git] / drivers / net / i40e / i40e_rxtx.h
index 39cb95a..5c2f5c2 100644 (file)
 #define I40E_RXBUF_SZ_1024 1024
 #define I40E_RXBUF_SZ_2048 2048
 
+/* In none-PXE mode QLEN must be whole number of 32 descriptors. */
+#define        I40E_ALIGN_RING_DESC    32
+
+#define        I40E_MIN_RING_DESC      64
+#define        I40E_MAX_RING_DESC      4096
+
 #undef container_of
 #define container_of(ptr, type, member) ({ \
                typeof(((type *)0)->member)(*__mptr) = (ptr); \
@@ -133,6 +139,7 @@ struct i40e_rx_queue {
        bool q_set; /**< indicate if rx queue has been configured */
        bool rx_deferred_start; /**< don't start this queue in dev start */
        uint16_t rx_using_sse; /**<flag indicate the usage of vPMD for rx */
+       uint8_t dcb_tc;         /**< Traffic class of rx queue */
 };
 
 struct i40e_tx_entry {
@@ -173,6 +180,7 @@ struct i40e_tx_queue {
        uint16_t tx_next_rs;
        bool q_set; /**< indicate if tx queue has been configured */
        bool tx_deferred_start; /**< don't start this queue in dev start */
+       uint8_t dcb_tc;         /**< Traffic class of tx queue */
 };
 
 /** Offload features */