[dpdk-dev] [PATCH v3 1/3] eal: add channel for multi-process communication

Thomas Monjalon thomas at monjalon.net
Thu Jan 25 12:34:46 CET 2018


25/01/2018 12:27, Burakov, Anatoly:
> Also, as a general note, i would prefer for sendmsg API's to return 0 on 
> success and -1 on failure, as number of sent messages is not only 
> meaningless to the user (since there's no way to tell if the value 
> returned is the value we expected), but also makes the API unintuitive 
> and prone to usage errors when using common "if (sendmsg()) {// error}" 
> idiom. However, i'm fine with leaving it as is, if everyone else is. 

I have not reviewed it, but I feel you are right.



More information about the dev mailing list