diff options
author | Matias Elo <matias.elo@nokia.com> | 2023-06-21 17:03:21 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2023-07-07 12:57:03 +0300 |
commit | dce33e87f7555e4f81bd52746ead8640640a63b2 (patch) | |
tree | 1eba44236ff0d6ba8ce6ef3ffa8cd0832aa1b350 /include | |
parent | 45f9da2e051612a64f4d36df5974b2dd5f5f4600 (diff) |
api: packet: change user flag function return value
Specify that the return values of odp_packet_user_flag() and
odp_packet_vector_user_flag() are positive if user flag is set. This way
the specifications match better with the new odp_event_user_area_and_flag()
API.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Ashwin Sekhar T K <asekhar@marvell.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/odp/api/spec/packet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/odp/api/spec/packet.h b/include/odp/api/spec/packet.h index 9f41edf1a..267bf819c 100644 --- a/include/odp/api/spec/packet.h +++ b/include/odp/api/spec/packet.h @@ -1502,7 +1502,7 @@ uint32_t odp_packet_user_area_size(odp_packet_t pkt); * @param pkt Packet handle * * @retval 0 User flag is clear - * @retval !0 User flag is set + * @retval >0 User flag is set */ int odp_packet_user_flag(odp_packet_t pkt); @@ -2306,7 +2306,7 @@ void *odp_packet_vector_user_area(odp_packet_vector_t pktv); * @param pktv Packet vector handle * * @retval 0 User flag is clear - * @retval !0 User flag is set + * @retval >0 User flag is set */ int odp_packet_vector_user_flag(odp_packet_vector_t pktv); |