@@ -296,11 +296,11 @@ int packet_alloc_multi(odp_pool_t pool_hdl, uint32_t len,
/* Perform packet parse up to a given protocol layer */
int packet_parse_layer(odp_packet_hdr_t *pkt_hdr,
- odp_pktio_parser_layer_t layer);
+ odp_proto_layer_t layer);
/* Perform L3 and L4 parsing up to a given protocol layer */
int packet_parse_l3_l4(odp_packet_hdr_t *pkt_hdr,
- odp_pktio_parser_layer_t layer,
+ odp_proto_layer_t layer,
uint32_t l3_offset,
uint16_t ethtype);
@@ -973,7 +973,7 @@ int cls_classify_packet(pktio_entry_t *entry, const uint8_t *base,
packet_set_len(pkt_hdr, pkt_len);
packet_parse_common(&pkt_hdr->p, base, pkt_len, seg_len,
- ODP_PKTIO_PARSER_LAYER_ALL);
+ ODP_PROTO_LAYER_ALL);
cos = cls_select_cos(entry, base, pkt_hdr);
if (cos == NULL)
@@ -2211,7 +2211,7 @@ int packet_parse_common_l3_l4(packet_parser_t *prs, const uint8_t *parseptr,
prs->l3_offset = offset;
- if (layer <= ODP_PKTIO_PARSER_LAYER_L2)
+ if (layer <= ODP_PROTO_LAYER_L2)
return prs->error_flags.all != 0;
/* Set l3 flag only for known ethtypes */
@@ -2242,7 +2242,7 @@ int packet_parse_common_l3_l4(packet_parser_t *prs, const uint8_t *parseptr,
ip_proto = 255; /* Reserved invalid by IANA */
}
- if (layer == ODP_PKTIO_PARSER_LAYER_L3)
+ if (layer == ODP_PROTO_LAYER_L3)
return prs->error_flags.all != 0;
/* Set l4 flag only for known ip_proto */
@@ -2314,7 +2314,7 @@ int packet_parse_common(packet_parser_t *prs, const uint8_t *ptr,
parseptr = ptr;
offset = 0;
- if (layer == ODP_PKTIO_PARSER_LAYER_NONE)
+ if (layer == ODP_PROTO_LAYER_NONE)
return 0;
/* Assume valid L2 header, no CRC/FCS check in SW */
@@ -2333,7 +2333,7 @@ int packet_parse_common(packet_parser_t *prs, const uint8_t *ptr,
* Simple packet parser
*/
int packet_parse_layer(odp_packet_hdr_t *pkt_hdr,
- odp_pktio_parser_layer_t layer)
+ odp_proto_layer_t layer)
{
uint32_t seg_len = packet_first_seg_len(pkt_hdr);
void *base = packet_data(pkt_hdr);
@@ -2343,7 +2343,7 @@ int packet_parse_layer(odp_packet_hdr_t *pkt_hdr,
}
int packet_parse_l3_l4(odp_packet_hdr_t *pkt_hdr,
- odp_pktio_parser_layer_t layer,
+ odp_proto_layer_t layer,
uint32_t l3_offset,
uint16_t ethtype)
{
@@ -998,7 +998,7 @@ void odp_pktio_config_init(odp_pktio_config_t *config)
{
memset(config, 0, sizeof(odp_pktio_config_t));
- config->parser.layer = ODP_PKTIO_PARSER_LAYER_ALL;
+ config->parser.layer = ODP_PROTO_LAYER_ALL;
}
int odp_pktio_info(odp_pktio_t hdl, odp_pktio_info_t *info)
@@ -1203,7 +1203,7 @@ int odp_pktio_capability(odp_pktio_t pktio, odp_pktio_capability_t *capa)
/* The same parser is used for all pktios */
if (ret == 0)
- capa->config.parser.layer = ODP_PKTIO_PARSER_LAYER_ALL;
+ capa->config.parser.layer = ODP_PROTO_LAYER_ALL;
return ret;
}