diff options
author | Petri Savolainen <petri.savolainen@linaro.org> | 2014-10-06 17:25:52 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-10-23 13:40:21 +0400 |
commit | 7a6c3779f1495166ae10697f7ae7bc26a266583f (patch) | |
tree | fafc1dea5b60e93d299b2beabce0ac6540c90661 /helper | |
parent | 7e62bb95f564c5e320a3666a3b57e9ad7aa19c63 (diff) |
Rename buffer_from_packet function
Rename odp_buffer_from_packet() to odp_packet_to_buffer().
It's a function of packet API vs buffer API.
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
Tested-by: Anders Roxel <anders.roxell@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'helper')
-rw-r--r-- | helper/include/odph_packet.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helper/include/odph_packet.h b/helper/include/odph_packet.h index c18f48d..3d53593 100644 --- a/helper/include/odph_packet.h +++ b/helper/include/odph_packet.h @@ -31,7 +31,7 @@ extern "C" { */ static inline int odph_packet_is_valid(odp_packet_t pkt) { - odp_buffer_t buf = odp_buffer_from_packet(pkt); + odp_buffer_t buf = odp_packet_to_buffer(pkt); return odp_buffer_is_valid(buf); } @@ -67,7 +67,7 @@ static inline odp_packet_t odph_packet_alloc(odp_buffer_pool_t pool_id) */ static inline void odph_packet_free(odp_packet_t pkt) { - odp_buffer_t buf = odp_buffer_from_packet(pkt); + odp_buffer_t buf = odp_packet_to_buffer(pkt); odp_buffer_free(buf); } @@ -84,7 +84,7 @@ static inline void odph_packet_free(odp_packet_t pkt) */ static inline size_t odph_packet_buf_size(odp_packet_t pkt) { - odp_buffer_t buf = odp_buffer_from_packet(pkt); + odp_buffer_t buf = odp_packet_to_buffer(pkt); return odp_buffer_size(buf); } |