Merged,
Maxim.
On 01/08/2016 19:35, Zoltan Kiss wrote:
This reverts commit 798c450fc41ee4195977a5af855dbc98d8aaec16. The use case
is not strong enough for this feature.
Signed-off-by: Zoltan Kiss <zoltan.k...@linaro.org>
---
include/odp/api/packet.h | 3 ---
include/odp/api/pool.h | 26 --------------------------
2 files changed, 29 deletions(-)
diff --git a/include/odp/api/packet.h b/include/odp/api/packet.h
index 8651a47..9c63b5f 100644
--- a/include/odp/api/packet.h
+++ b/include/odp/api/packet.h
@@ -93,9 +93,6 @@ extern "C" {
* @note The default headroom and tailroom used for packets is specified by
* the ODP_CONFIG_PACKET_HEADROOM and ODP_CONFIG_PACKET_TAILROOM defines in
* odp_config.h.
- * @note Data changed in user area might be preserved by the platform from
- * previous usage of the buffer, so values preset in uarea_init() are not
- * guaranteed.
*/
odp_packet_t odp_packet_alloc(odp_pool_t pool, uint32_t len);
diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h
index 01f770f..2e79a55 100644
--- a/include/odp/api/pool.h
+++ b/include/odp/api/pool.h
@@ -21,7 +21,6 @@ extern "C" {
#include <odp/std_types.h>
-#include <odp/packet.h>
/** @defgroup odp_pool ODP POOL
* Operations on a pool.
@@ -42,23 +41,6 @@ extern "C" {
#define ODP_POOL_NAME_LEN 32
/**
- * Packet user area initializer callback function for pools.
- *
- * @param pkt Handle of the packet
- * @param uarea_init_arg Opaque pointer defined in odp_pool_param_t
- *
- * @note If the application specifies this pointer, it expects that every
buffer
- * is initialized exactly once with it when the underlying memory is allocated.
- * It is not called from odp_packet_alloc(), unless the platform chooses to
- * allocate the memory at that point. Applications can only assume that this
- * callback is called once before the packet is first used. Any subsequent
- * change to the user area might be preserved after odp_packet_free() is
called,
- * so applications should take care of (re)initialization if they change data
- * preset by this function.
- */
-typedef void (odp_packet_uarea_init_t)(odp_packet_t pkt, void *uarea_init_arg);
-
-/**
* Pool parameters
* Used to communicate pool creation options.
*/
@@ -100,14 +82,6 @@ typedef struct odp_pool_param_t {
/** User area size in bytes. Specify as 0 if no user
area is needed. */
uint32_t uarea_size;
-
- /** Initialize every packet's user area at allocation
- time. Use NULL if no initialization needed. */
- odp_packet_uarea_init_t *uarea_init;
-
- /** Opaque pointer passed to packet user area
- constructor. */
- void *uarea_init_arg;
} pkt;
struct {
/** Number of timeouts in the pool */
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp