[v1,6/9] common/iavf: add flex descriptor fields enum

Message ID 20240910101224.497044-7-soumyadeep.hore@intel.com (mailing list archive)
State Accepted
Delegated to: Bruce Richardson
Headers
Series Update IAVF Base Driver |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Soumyadeep Hore Sept. 10, 2024, 10:12 a.m. UTC
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(+)
  

Patch

diff --git a/drivers/common/iavf/iavf_type.h b/drivers/common/iavf/iavf_type.h
index 1cd87587d6..b7d7027b9d 100644
--- a/drivers/common/iavf/iavf_type.h
+++ b/drivers/common/iavf/iavf_type.h
@@ -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)