Bug 257
Summary: | ipc: rte_mp_request_sync return 0 on error. | ||
---|---|---|---|
Product: | DPDK | Reporter: | Herakliusz (herakliusz.lipiec) |
Component: | core | Assignee: | Anatoly Burakov (anatoly.burakov) |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | ajit.khaparde, anatoly.burakov |
Priority: | Normal | ||
Version: | 18.11 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All |
Description
Herakliusz
2019-04-19 18:53:56 CEST
I'm not sure i follow. If the remote end failed to send the message, nb_received would not be incremented, and it would obviously not be safe to attempt to read the message. That's why nb_received is there - to let the caller know how many buffers have actually arrived. The function returning 0 when remote end has failed to send a response is intentional - it is not up to the API to decide whether this is an error condition (i.e. if the caller considers mismatch between nb_sent and nb_received to be an error). Not sure about the "not supported" part - perhaps it indeed should return -1 and set rte_errno to ENOTSUP. |