diff mbox series

[API-NEXT,v1,3/6] linux-gen: packet: provide new data set and compare API

Message ID 1501506009-28910-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v1,1/6] api: packet: add packet memset and memcmp-like functions | expand

Commit Message

Github ODP bot July 31, 2017, 1 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Currently we have such functions in internal namespace for in-ODP use
only. Exporting them as a part of public API would allow using them from
tests and user applications.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 94 (lumag:crypto-long-keys)
 ** https://github.com/Linaro/odp/pull/94
 ** Patch: https://github.com/Linaro/odp/pull/94.patch
 ** Base sha: c16f1363303cd5fc11324acbc4dfebe0a9680a41
 ** Merge commit sha: bab24526ba91a4499aff896c5e82d4ac3f03fea9
 **/
 platform/linux-generic/include/odp_packet_internal.h | 6 ------
 platform/linux-generic/odp_crypto.c                  | 4 ++--
 platform/linux-generic/odp_packet.c                  | 8 ++++----
 3 files changed, 6 insertions(+), 12 deletions(-)
diff mbox series

Patch

diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h
index 5e0f3204..cbaab72d 100644
--- a/platform/linux-generic/include/odp_packet_internal.h
+++ b/platform/linux-generic/include/odp_packet_internal.h
@@ -247,12 +247,6 @@  int packet_parse_common(packet_parser_t *pkt_hdr, const uint8_t *ptr,
 
 int _odp_cls_parse(odp_packet_hdr_t *pkt_hdr, const uint8_t *parseptr);
 
-int _odp_packet_set_data(odp_packet_t pkt, uint32_t offset,
-			 uint8_t c, uint32_t len);
-
-int _odp_packet_cmp_data(odp_packet_t pkt, uint32_t offset,
-			 const void *s, uint32_t len);
-
 #ifdef __cplusplus
 }
 #endif
diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c
index ca51bdf0..6d7d0e2e 100644
--- a/platform/linux-generic/odp_crypto.c
+++ b/platform/linux-generic/odp_crypto.c
@@ -213,8 +213,8 @@  odp_crypto_alg_err_t auth_check(odp_packet_t pkt,
 	odp_packet_copy_to_mem(pkt, param->hash_result_offset,
 			       bytes, hash_in);
 
-	_odp_packet_set_data(pkt, param->hash_result_offset,
-			     0, bytes);
+	odp_packet_set_data(pkt, param->hash_result_offset,
+			    0, bytes);
 
 	/* Hash it */
 	packet_hmac(pkt, param, session, hash_out);
diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c
index 22358438..82810fec 100644
--- a/platform/linux-generic/odp_packet.c
+++ b/platform/linux-generic/odp_packet.c
@@ -1640,8 +1640,8 @@  int odp_packet_move_data(odp_packet_t pkt, uint32_t dst_offset,
 					pkt, src_offset, len);
 }
 
-int _odp_packet_set_data(odp_packet_t pkt, uint32_t offset,
-			 uint8_t c, uint32_t len)
+int odp_packet_set_data(odp_packet_t pkt, uint32_t offset,
+			uint8_t c, uint32_t len)
 {
 	void *mapaddr;
 	uint32_t seglen = 0; /* GCC */
@@ -1662,8 +1662,8 @@  int _odp_packet_set_data(odp_packet_t pkt, uint32_t offset,
 	return 0;
 }
 
-int _odp_packet_cmp_data(odp_packet_t pkt, uint32_t offset,
-			 const void *s, uint32_t len)
+int odp_packet_cmp_data(odp_packet_t pkt, uint32_t offset,
+			const void *s, uint32_t len)
 {
 	const uint8_t *ptr = s;
 	void *mapaddr;