Thread (9 messages) 9 messages, 3 authors, 2021-01-05

Re: [dpdk-dev] [PATCH 3/5] net/iavf: define new bits for eCPRI

From: Ferruh Yigit <hidden>
Date: 2021-01-05 12:29:04

On 12/14/2020 6:49 AM, Junfeng Guo wrote:
quoted hunk ↗ jump to hunk
Define new bits of protocol header, field and input set for eCPRI.

Signed-off-by: Junfeng Guo <redacted>
---
  drivers/net/iavf/iavf_generic_flow.h | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/iavf/iavf_generic_flow.h b/drivers/net/iavf/iavf_generic_flow.h
index 9e518bd14c..0ccf5901b4 100644
--- a/drivers/net/iavf/iavf_generic_flow.h
+++ b/drivers/net/iavf/iavf_generic_flow.h
@@ -34,6 +34,7 @@
  #define IAVF_PROT_AH		    (1ULL << 23)
  #define IAVF_PROT_L2TPV3OIP	    (1ULL << 24)
  #define IAVF_PROT_PFCP		    (1ULL << 25)
+#define IAVF_PROT_ECPRI		    (1ULL << 26)
  
  
  /* field */
@@ -59,6 +60,7 @@
  #define IAVF_L2TPV3OIP_SESSION_ID   (1ULL << 45)
  #define IAVF_PFCP_S_FIELD	    (1ULL << 44)
  #define IAVF_PFCP_SEID		    (1ULL << 43)
+#define IAVF_ECPRI_PC_RTC_ID	    (1ULL << 42)
  
  /* input set */
  
@@ -135,7 +137,8 @@
  	(IAVF_PROT_PFCP | IAVF_PFCP_S_FIELD)
  #define IAVF_INSET_PFCP_SEID \
  	(IAVF_PROT_PFCP | IAVF_PFCP_S_FIELD | IAVF_PFCP_SEID)
-
+#define IAVF_INSET_ECPRI \
+	(IAVF_PROT_ECPRI | IAVF_ECPRI_PC_RTC_ID)
  
  /* empty pattern */
  extern enum rte_flow_item_type iavf_pattern_empty[];
Squashed into next commit [1], where these defines used.

[1] net/iavf: support eCPRI MSG TYPE 0 for AVF FDIR
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help