diff options
author | Nithin Dabilpuram <ndabilpuram@marvell.com> | 2020-10-07 23:03:31 +0530 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2020-11-02 17:32:42 +0200 |
commit | 23af99cf505aea18bb34416c0132b4326d651509 (patch) | |
tree | c0541787fdd88c6cc388dfc1317e43500a231076 /include | |
parent | bfbfbb4cc25418c91601af64d350d4bb7bd4e402 (diff) |
api: pktio: deprecate pktin timestamp API
Now that we have API that works with Packet IO time source
that is applicable/used for both Rx and Tx packet timestamps,
odp_pktin_ts_*() API are redundant. So this patch deprecates them.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/odp/api/spec/packet_io.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/odp/api/spec/packet_io.h b/include/odp/api/spec/packet_io.h index b4399e2dc..d25d29751 100644 --- a/include/odp/api/spec/packet_io.h +++ b/include/odp/api/spec/packet_io.h @@ -1398,6 +1398,9 @@ int odp_pktio_link_info(odp_pktio_t pktio, odp_pktio_link_info_t *info); /** * Packet input timestamp resolution in hertz * + * @deprecated Use odp_pktio_ts_res() instead, which returns resolution for + * both packet input and output timestamps. + * * This is the resolution of packet input timestamps. Returns zero on a failure * or when timestamping is disabled. * @@ -1406,11 +1409,14 @@ int odp_pktio_link_info(odp_pktio_t pktio, odp_pktio_link_info_t *info); * @return Packet input timestamp resolution in hertz * @retval 0 on failure */ -uint64_t odp_pktin_ts_res(odp_pktio_t pktio); +uint64_t ODP_DEPRECATE(odp_pktin_ts_res)(odp_pktio_t pktio); /** * Convert nanoseconds to packet input time * + * @deprecated Use odp_pktio_ts_from_ns() instead, which can be used with both + * packet input and output timestamps. + * * Packet input time source is used for timestamping incoming packets. * This function is used convert nanosecond time to packet input timestamp time. * @@ -1419,7 +1425,7 @@ uint64_t odp_pktin_ts_res(odp_pktio_t pktio); * * @return Packet input timestamp */ -odp_time_t odp_pktin_ts_from_ns(odp_pktio_t pktio, uint64_t ns); +odp_time_t ODP_DEPRECATE(odp_pktin_ts_from_ns)(odp_pktio_t pktio, uint64_t ns); /** * Packet IO timestamp resolution in hertz |