On 04/10/2015 06:52 PM, Bill Fischofer wrote:
Signed-off-by: Bill Fischofer <bill.fischo...@linaro.org>
---
  include/odp/api/packet.h | 20 ++++++++++++++++++++
  1 file changed, 20 insertions(+)

diff --git a/include/odp/api/packet.h b/include/odp/api/packet.h
index a31c54d..840e152 100644
--- a/include/odp/api/packet.h
+++ b/include/odp/api/packet.h
@@ -467,6 +467,26 @@ uint64_t odp_packet_user_u64(odp_packet_t pkt);
  void odp_packet_user_u64_set(odp_packet_t pkt, uint64_t ctx);

  /**
+ * Get address of user metadata associated with a packet
+ *
+ * @param pkt             Packet handle
+ *
+ * @retval addr           Address of the user metadata associated with pkt
+ * @retval NULL           The packet has no user metadata.
+ */
+void *odp_packet_user_data(odp_packet_t pkt);
+
+/**
+ * Get size of user metadata associated with a packet
+ *
+ * @param pkt             Packet handle
+ *
+ * @return                Number of bytes of user metadata associated
+ *                        with pkt.
+ */
+uint32_t odp_packet_user_data_size(odp_packet_t pkt);
+
+/**
   * Layer 2 start pointer
   *
   * Returns pointer to the start of the layer 2 header. Optionally, outputs


I assume usage of user_data, user_ptr and user_u64 are all mutually
exclusive. I mean the same memory location can be used to store all of
them. It should be noted somewhere.
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to