[RFC 3/5] net: add missing eCPRI message field values
Mattias Rönnblom
hofors at lysator.liu.se
Tue Aug 4 10:13:17 CEST 2026
From: Mattias Rönnblom <mattias.ronnblom at ericsson.com>
Only the Event Type values of the Event Indication message (type #7)
were defined. Add the values of the other message types, per eCPRI V2.0
tables 5, 6, 8 and 9: Read/Write and Req/Resp of Remote Memory Access
(type #4), Action Type of One-Way Delay Measurement (type #5) and Reset
Code Op of Remote Reset (type #6).
The Action Type tells whether the TimeStamp and Compensation Value
fields carry time information, or are required to be zero.
Signed-off-by: Mattias Rönnblom <mattias.ronnblom at ericsson.com>
---
lib/net/rte_ecpri.h | 49 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/lib/net/rte_ecpri.h b/lib/net/rte_ecpri.h
index 6bacdbecc2..c147cb7b64 100644
--- a/lib/net/rte_ecpri.h
+++ b/lib/net/rte_ecpri.h
@@ -42,6 +42,55 @@
#define RTE_ECPRI_MSG_TYPE_IWF_MAP 10
#define RTE_ECPRI_MSG_TYPE_IWF_DCTRL 11
+/*
+ * Read/Write of Message Type #4: Remote Memory Access
+ * 0x0: Read
+ * 0x1: Write
+ * 0x2: Write_No_Resp
+ * 0x3...0xF: Reserved
+ */
+#define RTE_ECPRI_RM_ACC_RW_READ 0x0
+#define RTE_ECPRI_RM_ACC_RW_WRITE 0x1
+#define RTE_ECPRI_RM_ACC_RW_WRITE_NO_RSP 0x2
+
+/*
+ * Req/Resp of Message Type #4: Remote Memory Access
+ * 0x0: Request
+ * 0x1: Response
+ * 0x2: Failure
+ * 0x3...0xF: Reserved
+ */
+#define RTE_ECPRI_RM_ACC_RR_REQ 0x0
+#define RTE_ECPRI_RM_ACC_RR_RSP 0x1
+#define RTE_ECPRI_RM_ACC_RR_FAIL 0x2
+
+/*
+ * Action Type of Message Type #5: One-Way Delay Measurement
+ * 0x00: Request
+ * 0x01: Request with Follow_Up
+ * 0x02: Response
+ * 0x03: Remote Request
+ * 0x04: Remote Request with Follow_Up
+ * 0x05: Follow_Up
+ * 0x06...0xFF: Reserved
+ */
+#define RTE_ECPRI_DLY_MSR_ACT_REQ 0x00
+#define RTE_ECPRI_DLY_MSR_ACT_REQ_FUP 0x01
+#define RTE_ECPRI_DLY_MSR_ACT_RSP 0x02
+#define RTE_ECPRI_DLY_MSR_ACT_RMT_REQ 0x03
+#define RTE_ECPRI_DLY_MSR_ACT_RMT_REQ_FUP 0x04
+#define RTE_ECPRI_DLY_MSR_ACT_FUP 0x05
+
+/*
+ * Reset Code Op of Message Type #6: Remote Reset
+ * 0x00: Reserved
+ * 0x01: Remote reset request
+ * 0x02: Remote reset response
+ * 0x03...0xFF: Reserved
+ */
+#define RTE_ECPRI_RMT_RST_OP_REQ 0x01
+#define RTE_ECPRI_RMT_RST_OP_RSP 0x02
+
/*
* Event Type of Message Type #7: Event Indication
* 0x00: Fault(s) Indication
--
2.43.0
More information about the dev
mailing list