aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2020-11-05 12:57:47 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2020-11-20 09:38:21 +0200
commit93746d0425dced831150ca5252e5304b30424be2 (patch)
tree9fa6ebff9f9ff95188713881346269fa5c687d15 /include
parent832a19e87259356f5b2293fe6b81a9d64f6b1b38 (diff)
api: packet: update validity check specification
Update specification text of odp_packet_is_valid() and odp_packet_vector_valid() to mention that those calls should not crash if the handle is corrupted. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'include')
-rw-r--r--include/odp/api/spec/packet.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/include/odp/api/spec/packet.h b/include/odp/api/spec/packet.h
index 9ccdd8e6b..44fc75924 100644
--- a/include/odp/api/spec/packet.h
+++ b/include/odp/api/spec/packet.h
@@ -2162,10 +2162,12 @@ uint32_t odp_packet_vector_size(odp_packet_vector_t pktv);
void odp_packet_vector_size_set(odp_packet_vector_t pktv, uint32_t size);
/**
- * Perform full packet vector validity check
+ * Check that packet vector is valid
*
- * The operation may consume considerable number of cpu cycles depending on
- * the check level.
+ * This function can be used for debugging purposes to check if a packet vector handle represents
+ * a valid packet vector. The level of error checks depends on the implementation. Considerable
+ * number of cpu cycles may be consumed depending on the level. The call should not crash if
+ * the packet vector handle is corrupted.
*
* @param pktv Packet vector handle
*
@@ -2238,10 +2240,12 @@ void odp_packet_print(odp_packet_t pkt);
void odp_packet_print_data(odp_packet_t pkt, uint32_t offset, uint32_t len);
/**
- * Perform full packet validity check
+ * Check that packet is valid
*
- * The operation may consume considerable number of cpu cycles depending on
- * the check level.
+ * This function can be used for debugging purposes to check if a packet handle represents
+ * a valid packet. The level of error checks depends on the implementation. Considerable number of
+ * cpu cycles may be consumed depending on the level. The call should not crash if the packet
+ * handle is corrupted.
*
* @param pkt Packet handle
*