aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include
diff options
context:
space:
mode:
authorJere Leppänen <jere.leppanen@nokia.com>2022-03-21 19:15:42 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2022-03-31 16:35:49 +0300
commit76c8b7a1a90f1eb895944627c9f76c9ed03d7136 (patch)
treec43a5cb51c236abd0e60f23f3eadd857f43c774d /platform/linux-generic/include
parentae347d56397061b1b12442dabde1cda5df8ca2d8 (diff)
linux-gen: parse: remove unused *_packet_parse_layer() functions
All pktios are now calling _odp_packet_parse_common() or _odp_dpdk_packet_parse_common(), so remove the unused _odp_packet_parse_layer() and _odp_dpdk_packet_parse_layer() functions. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/include')
-rw-r--r--platform/linux-generic/include/odp_packet_dpdk.h14
-rw-r--r--platform/linux-generic/include/odp_parse_internal.h5
2 files changed, 0 insertions, 19 deletions
diff --git a/platform/linux-generic/include/odp_packet_dpdk.h b/platform/linux-generic/include/odp_packet_dpdk.h
index 3add83f19..b326000e6 100644
--- a/platform/linux-generic/include/odp_packet_dpdk.h
+++ b/platform/linux-generic/include/odp_packet_dpdk.h
@@ -46,18 +46,4 @@ int _odp_dpdk_packet_parse_common(packet_parser_t *pkt_hdr,
uint32_t supported_ptypes,
odp_pktin_config_opt_t pktin_cfg);
-static inline int _odp_dpdk_packet_parse_layer(odp_packet_hdr_t *pkt_hdr,
- struct rte_mbuf *mbuf,
- odp_proto_layer_t layer,
- uint32_t supported_ptypes,
- odp_pktin_config_opt_t pktin_cfg)
-{
- uint32_t seg_len = pkt_hdr->seg_len;
- void *base = pkt_hdr->seg_data;
-
- return _odp_dpdk_packet_parse_common(&pkt_hdr->p, base,
- pkt_hdr->frame_len, seg_len, mbuf,
- layer, supported_ptypes,
- pktin_cfg);
-}
#endif
diff --git a/platform/linux-generic/include/odp_parse_internal.h b/platform/linux-generic/include/odp_parse_internal.h
index 8132c1c7b..13d0564dc 100644
--- a/platform/linux-generic/include/odp_parse_internal.h
+++ b/platform/linux-generic/include/odp_parse_internal.h
@@ -103,11 +103,6 @@ static inline int _odp_packet_parse_common(packet_parser_t *prs,
l4_part_sum);
}
-/* Perform packet parse up to a given protocol layer */
-int _odp_packet_parse_layer(odp_packet_hdr_t *pkt_hdr,
- odp_proto_layer_t layer,
- odp_proto_chksums_t chksums);
-
#ifdef __cplusplus
}
#endif