diff mbox series

[API-NEXT,v1,3/3] api: ipsec: use common protocol layer enum

Message ID 1509717611-13444-4-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v1,1/3] api: packet: add parse functions | expand

Commit Message

Github ODP bot Nov. 3, 2017, 2 p.m. UTC
From: Petri Savolainen <petri.savolainen@linaro.org>


Use common values between ipsec parse and
packet protocol layer enums.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
/** Email created from pull request 273 (psavol:next-packet-parse)
 ** https://github.com/Linaro/odp/pull/273
 ** Patch: https://github.com/Linaro/odp/pull/273.patch
 ** Base sha: d22c949cc466bf28de559855a1cb525740578137
 ** Merge commit sha: e0d94080baa0c37e77bf42dc261565b3b19571d8
 **/
 include/odp/api/spec/ipsec.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 26e852fca..4a33af8ea 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -74,19 +74,19 @@  typedef enum odp_ipsec_op_mode_t {
  */
 typedef enum odp_ipsec_proto_layer_t {
 	/** No layers */
-	ODP_IPSEC_LAYER_NONE = 0,
+	ODP_IPSEC_LAYER_NONE = ODP_PROTO_LAYER_NONE,
 
 	/** Layer L2 protocols (Ethernet, VLAN, etc) */
-	ODP_IPSEC_LAYER_L2,
+	ODP_IPSEC_LAYER_L2 = ODP_PROTO_LAYER_L2,
 
 	/** Layer L3 protocols (IPv4, IPv6, ICMP, IPSEC, etc) */
-	ODP_IPSEC_LAYER_L3,
+	ODP_IPSEC_LAYER_L3 = ODP_PROTO_LAYER_L3,
 
 	/** Layer L4 protocols (UDP, TCP, SCTP) */
-	ODP_IPSEC_LAYER_L4,
+	ODP_IPSEC_LAYER_L4 = ODP_PROTO_LAYER_L4,
 
 	/** All layers */
-	ODP_IPSEC_LAYER_ALL
+	ODP_IPSEC_LAYER_ALL = ODP_PROTO_LAYER_ALL
 
 } odp_ipsec_proto_layer_t;