@@ -156,9 +156,9 @@ typedef struct odp_ipsec_inbound_config_t {
*
* Each successfully transformed packet has a valid value for L3 offset
* regardless of the parse configuration. Default value is
- * ODP_IPSEC_LAYER_NONE. ODP_IPSEC_LAYER_L2 is not a valid value.
+ * ODP_PROTO_LAYER_NONE. ODP_PROTO_LAYER_L2 is not a valid value.
*/
- odp_ipsec_proto_layer_t parse;
+ odp_proto_layer_t parse_level;
/** Flags to control IPSEC payload data checks up to the selected parse
* level. Checksum checking status can be queried for each packet with
@@ -756,7 +756,7 @@ static ipsec_sa_t *ipsec_in_single(odp_packet_t pkt,
parse_param.proto = state.is_ipv4 ?
ODP_PROTO_IPV4 :
ODP_PROTO_IPV6;
- parse_param.last_layer = (odp_proto_layer_t)ipsec_config.inbound.parse;
+ parse_param.last_layer = ipsec_config.inbound.parse_level;
parse_param.chksums = ipsec_config.inbound.chksums;
/* We do not care about return code here.
@@ -904,7 +904,7 @@ int ipsec_config(odp_instance_t ODP_UNUSED inst)
ipsec_config.inbound_mode = suite_context.inbound_op_mode;
ipsec_config.outbound_mode = suite_context.outbound_op_mode;
ipsec_config.inbound.default_queue = suite_context.queue;
- ipsec_config.inbound.parse = ODP_IPSEC_LAYER_ALL;
+ ipsec_config.inbound.parse_level = ODP_PROTO_LAYER_ALL;
if (ODP_IPSEC_OK != odp_ipsec_config(&ipsec_config))
return -1;