liburing zero copy (#1273)
* liburing zero copy
By pre-registering the send buffers we can make use of zero copy in
order to avoid the kernel memcpy-ing the buffers.
Send buffers are allocated by us and will be set as available once
liburing notifies us about it.
* handle feedback
* handle ENOMEM error when registering buffers
* fix error comparison
* Cosmetic
* Try to make compiled happy
* Do not use errno variable name
* Use error = -1 * err everywhere
* remove uneeded '-1 *' to negate an int
---------
Co-authored-by:
Iñaki Baz Castillo <ibc@aliax.net>
正在显示
请
注册
或者
登录
后发表评论