diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2015-05-05 16:11:39 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-05-08 13:54:25 +0300 |
commit | 585b5d209326a0544f3dd07637f7da391b02f90b (patch) | |
tree | 7828c2f3728efb722414e9a26b578b3ab5402ac0 /include/odp/api/packet_io.h | |
parent | 7c7c3b8ccf1c79b1a42c1724e4d95ebc35f031a8 (diff) |
api: packet_io: added start and stop
Packet IO start and stop enable a controlled setup and
tear down phases.
Interface control sequence:
* odp_pktio_open() creates a pktio interface object
* potential interface configurations (classification, input queues, etc)
* odp_pktio_start() enables packet input/output
* receive / transmit packets
* odp_pktio_stop() disables packet input/output
* drain remaining packets from queues
* remove / destroy input queues
* odp_pktio_close() destroys the pktio interface object
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp/api/packet_io.h')
-rw-r--r-- | include/odp/api/packet_io.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index 4712fc323..6d17d8681 100644 --- a/include/odp/api/packet_io.h +++ b/include/odp/api/packet_io.h @@ -99,6 +99,26 @@ odp_pktio_t odp_pktio_open(const char *dev, odp_pool_t pool, const odp_pktio_param_t *param); /** + * Start packet receive and transmit + * + * @param pktio Packet IO handle + * + * @retval 0 on success + * @retval <0 on failure + */ +int odp_pktio_start(odp_pktio_t pktio); + +/** + * Stop packet receive and transmit + * + * @param pktio Packet IO handle + * + * @retval 0 on success + * @retval <0 on failure + */ +int odp_pktio_stop(odp_pktio_t pktio); + +/** * Close a packet IO interface * * @param pktio Packet IO handle |