From 0316d4fab3075b5b19f06ef4f3aba16a665106c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jere=20Lepp=C3=A4nen?= Date: Fri, 25 Feb 2022 13:59:00 +0200 Subject: linux-gen: parse: prefix non-static functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prefix the names of non-static parse functions with "_odp_". Signed-off-by: Jere Leppänen Reviewed-by: Matias Elo Reviewed-by: Petri Savolainen --- .../linux-generic/include/odp_packet_internal.h | 4 ++-- .../linux-generic/include/odp_parse_internal.h | 24 +++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'platform/linux-generic/include') diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index 868b4ef56..fb0e7f31a 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -468,8 +468,8 @@ int _odp_packet_tcp_chksum_insert(odp_packet_t pkt); int _odp_packet_udp_chksum_insert(odp_packet_t pkt); int _odp_packet_sctp_chksum_insert(odp_packet_t pkt); -int packet_l4_chksum(odp_packet_hdr_t *pkt_hdr, odp_proto_chksums_t chksums, - uint64_t l4_part_sum); +int _odp_packet_l4_chksum(odp_packet_hdr_t *pkt_hdr, + odp_proto_chksums_t chksums, uint64_t l4_part_sum); #ifdef __cplusplus } diff --git a/platform/linux-generic/include/odp_parse_internal.h b/platform/linux-generic/include/odp_parse_internal.h index 99b730a58..011655cdc 100644 --- a/platform/linux-generic/include/odp_parse_internal.h +++ b/platform/linux-generic/include/odp_parse_internal.h @@ -49,15 +49,15 @@ extern "C" { #define PARSE_L3_L4_BYTES (MAX(PARSE_IPV4_BYTES, PARSE_IPV6_BYTES) + \ MAX3(PARSE_TCP_BYTES, PARSE_UDP_BYTES, PARSE_SCTP_BYTES)) -uint16_t parse_eth(packet_parser_t *prs, const uint8_t **parseptr, - uint32_t *offset, uint32_t frame_len); +uint16_t _odp_parse_eth(packet_parser_t *prs, const uint8_t **parseptr, + uint32_t *offset, uint32_t frame_len); -int packet_parse_common_l3_l4(packet_parser_t *prs, const uint8_t *parseptr, - uint32_t offset, - uint32_t frame_len, uint32_t seg_len, - int layer, uint16_t ethtype, - odp_proto_chksums_t chksums, - uint64_t *l4_part_sum); +int _odp_packet_parse_common_l3_l4(packet_parser_t *prs, + const uint8_t *parseptr, uint32_t offset, + uint32_t frame_len, uint32_t seg_len, + int layer, uint16_t ethtype, + odp_proto_chksums_t chksums, + uint64_t *l4_part_sum); /** * Parse common packet headers up to given layer @@ -85,11 +85,11 @@ static inline int _odp_packet_parse_common(packet_parser_t *prs, /* Assume valid L2 header, no CRC/FCS check in SW */ prs->l2_offset = offset; - ethtype = parse_eth(prs, &parseptr, &offset, frame_len); + ethtype = _odp_parse_eth(prs, &parseptr, &offset, frame_len); - return packet_parse_common_l3_l4(prs, parseptr, offset, frame_len, - seg_len, layer, ethtype, chksums, - &l4_part_sum); + return _odp_packet_parse_common_l3_l4(prs, parseptr, offset, frame_len, + seg_len, layer, ethtype, chksums, + &l4_part_sum); } /* Perform packet parse up to a given protocol layer */ -- cgit v1.2.3