diff mbox series

[API-NEXT,v3,2/2] api: ipsec: drop odp_ipsec_proto_layer_t

Message ID 1513119622-28651-3-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v3,1/2] api: ipsec: use odp_proto_layer_t for parse layer spec | expand

Commit Message

Github ODP bot Dec. 12, 2017, 11 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Use odp_proto_layer_t to specify outer header retention level. Drop
separate odp_ipsec_proto_layer_t.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 336 (lumag:ipsec-proto-layer)
 ** https://github.com/Linaro/odp/pull/336
 ** Patch: https://github.com/Linaro/odp/pull/336.patch
 ** Base sha: d96a8207591fbcaac25b79286d7d72a537354c1f
 ** Merge commit sha: 4939d3df2d894e02c41bff00aefdb7a394392ecc
 **/
 include/odp/api/spec/ipsec.h | 39 +++++++++------------------------------
 1 file changed, 9 insertions(+), 30 deletions(-)
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index b608e3dac..4a805a524 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -69,27 +69,6 @@  typedef enum odp_ipsec_op_mode_t {
 
 } odp_ipsec_op_mode_t;
 
-/**
- * Protocol layers in IPSEC configuration
- */
-typedef enum odp_ipsec_proto_layer_t {
-	/** No layers */
-	ODP_IPSEC_LAYER_NONE = ODP_PROTO_LAYER_NONE,
-
-	/** Layer L2 protocols (Ethernet, VLAN, etc) */
-	ODP_IPSEC_LAYER_L2 = ODP_PROTO_LAYER_L2,
-
-	/** Layer L3 protocols (IPv4, IPv6, ICMP, IPSEC, etc) */
-	ODP_IPSEC_LAYER_L3 = ODP_PROTO_LAYER_L3,
-
-	/** Layer L4 protocols (UDP, TCP, SCTP) */
-	ODP_IPSEC_LAYER_L4 = ODP_PROTO_LAYER_L4,
-
-	/** All layers */
-	ODP_IPSEC_LAYER_ALL = ODP_PROTO_LAYER_ALL
-
-} odp_ipsec_proto_layer_t;
-
 /**
  * Configuration options for IPSEC inbound processing
  */
@@ -125,25 +104,25 @@  typedef struct odp_ipsec_inbound_config_t {
 	 *
 	 *  Select up to which protocol layer (at least) outer headers are
 	 *  retained in inbound inline processing. Default value is
-	 *  ODP_IPSEC_LAYER_NONE.
+	 *  ODP_PROTO_LAYER_NONE.
 	 *
-	 *  ODP_IPSEC_LAYER_NONE: Application does not require any outer
+	 *  ODP_PROTO_LAYER_NONE: Application does not require any outer
 	 *                        headers to be retained.
 	 *
-	 *  ODP_IPSEC_LAYER_L2:   Retain headers up to layer 2.
+	 *  ODP_PROTO_LAYER_L2:   Retain headers up to layer 2.
 	 *
-	 *  ODP_IPSEC_LAYER_L3:   Retain headers up to layer 3, otherwise the
-	 *                        same as ODP_IPSEC_LAYER_ALL.
+	 *  ODP_PROTO_LAYER_L3:   Retain headers up to layer 3, otherwise the
+	 *                        same as ODP_PROTO_LAYER_ALL.
 	 *
-	 *  ODP_IPSEC_LAYER_L4:   Retain headers up to layer 4, otherwise the
-	 *                        same as ODP_IPSEC_LAYER_ALL.
+	 *  ODP_PROTO_LAYER_L4:   Retain headers up to layer 4, otherwise the
+	 *                        same as ODP_PROTO_LAYER_ALL.
 	 *
-	 *  ODP_IPSEC_LAYER_ALL:  In tunnel mode, all headers before IPSEC are
+	 *  ODP_PROTO_LAYER_ALL:  In tunnel mode, all headers before IPSEC are
 	 *                        retained. In transport mode, all headers
 	 *                        before IP (carrying IPSEC) are retained.
 	 *
 	 */
-	odp_ipsec_proto_layer_t retain_outer;
+	odp_proto_layer_t retain_outer;
 
 	/** Parse packet headers after IPSEC transformation
 	 *