From 76c8b7a1a90f1eb895944627c9f76c9ed03d7136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jere=20Lepp=C3=A4nen?= Date: Mon, 21 Mar 2022 19:15:42 +0200 Subject: linux-gen: parse: remove unused *_packet_parse_layer() functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Matias Elo Reviewed-by: Petri Savolainen --- platform/linux-generic/include/odp_packet_dpdk.h | 14 -------------- platform/linux-generic/include/odp_parse_internal.h | 5 ----- 2 files changed, 19 deletions(-) (limited to 'platform/linux-generic/include') 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 -- cgit v1.2.3