diff options
author | Ciprian Barbu <ciprian.barbu@linaro.org> | 2014-04-09 11:03:35 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-04-10 13:25:19 +0400 |
commit | 248c00d3cd3855955955e75f2cc4ef18ef596fb9 (patch) | |
tree | 2dd5a49c862be20a011177179020fa2a5f7976be /include | |
parent | 0d95ef3781e3e717c5e6c20223b09bb4c3b21c8e (diff) |
Adding odp_packet_copy
This function will not some more work when the scatter/gather support is added,
for now the odp_buffer_copy_scatter is just a stub.
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/odp_packet.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/odp_packet.h b/include/odp_packet.h index 3c7c9d09..4a16e115 100644 --- a/include/odp_packet.h +++ b/include/odp_packet.h @@ -209,6 +209,17 @@ void odp_packet_set_l4_offset(odp_packet_t pkt, size_t offset); */ void odp_packet_print(odp_packet_t pkt); +/** + * Copy contents and metadata from pkt_src to pkt_dst + * Useful when creating copies of packets + * + * @param pkt_dst Destination packet + * @param pkt_src Source packet + * + * @return 0 if successful + */ +int odp_packet_copy(odp_packet_t pkt_dst, odp_packet_t pkt_src); + #ifdef __cplusplus } #endif |