[v1,6/9] common/iavf: add flex descriptor fields enum
Checks
Commit Message
From: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Flex descriptor has fields like DD, EOP or RXE defined under other
addresses than legacy descriptor. This commit introduces enum with
bits definitions for flex one.
Signed-off-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Signed-off-by: Soumyadeep Hore <soumyadeep.hore@intel.com>
---
drivers/common/iavf/iavf_type.h | 4 ++++
1 file changed, 4 insertions(+)
@@ -474,6 +474,10 @@ enum iavf_rx_desc_status_bits {
IAVF_RX_DESC_STATUS_LAST /* this entry must be last!!! */
};
+#define IAVF_RX_FLEX_DESC_STATUS_ERR0_DD_BIT BIT(0)
+#define IAVF_RX_FLEX_DESC_STATUS_ERR0_EOP_BIT BIT(1)
+#define IAVF_RX_FLEX_DESC_STATUS_ERR0_RXE_BIT BIT(10)
+
#define IAVF_RXD_QW1_STATUS_SHIFT 0
#define IAVF_RXD_QW1_STATUS_MASK ((BIT(IAVF_RX_DESC_STATUS_LAST) - 1) \
<< IAVF_RXD_QW1_STATUS_SHIFT)