diff options
author | Janne Peltonen <janne.peltonen@nokia.com> | 2021-07-22 10:50:38 +0300 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2021-09-29 15:10:56 +0300 |
commit | 754688b1eb3af6df37b965167fcaf254c5683713 (patch) | |
tree | 036a34cfc74af65dead90207ce50ba450befac7a /include/odp/api/spec/packet.h | |
parent | 1047a9a5a75babae1c53b35924a594ba0888a420 (diff) |
api: packet: add odp_packet_reass_info() for reassembly details
Introduce odp_packet_reass_info() that provides information on
a completed reassembly. The number of fragments that were reassembled
is useful for statistics. More info can be added later.
Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Anoob Joseph <anoobj@marvell.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'include/odp/api/spec/packet.h')
-rw-r--r-- | include/odp/api/spec/packet.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/odp/api/spec/packet.h b/include/odp/api/spec/packet.h index 2285a857d..e8f3cbc4a 100644 --- a/include/odp/api/spec/packet.h +++ b/include/odp/api/spec/packet.h @@ -180,6 +180,20 @@ void odp_packet_to_event_multi(const odp_packet_t pkt[], odp_event_t ev[], int num); /** + * Get information about successful reassembly offload that has happened + * + * This function may be called only if the reassembly status of a packet + * is ODP_PACKET_REASS_COMPLETE. + * + * @param pkt Completely reassembled packet. + * @param[out] info Pointer to the info structure to be filled + * + * @retval 0 on success + * @retval <0 on failure + */ +int odp_packet_reass_info(odp_packet_t pkt, odp_packet_reass_info_t *info); + +/** * Get partial reassembly state from a packet * * In case of incomplete reassembly, a packet carries information on |