Message ID | 1481655217-30447-7-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/platform/linux-generic/pktio/ipc.c b/platform/linux-generic/pktio/ipc.c index f521016..9527795 100644 --- a/platform/linux-generic/pktio/ipc.c +++ b/platform/linux-generic/pktio/ipc.c @@ -430,7 +430,7 @@ static int ipc_pktio_recv_lockless(pktio_entry_t *pktio_entry, ready = odp_atomic_load_u32(&pktio_entry->s.ipc.ready); if (odp_unlikely(!ready)) { IPC_ODP_DBG("start pktio is missing before usage?\n"); - return -1; + return 0; } _ipc_free_ring_packets(pktio_entry, pktio_entry->s.ipc.tx.free);
odp_pktio_close() on stopped pktio calls flush_in_queues() which call several recv() and treating negative return code as errors. Adjust pktio ipc code accordingly. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- platform/linux-generic/pktio/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.1.250.gff4ea60