sock/uring: fix build on systems w/o zerocopy support
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I9c856a6390f227393bb0df8a473895e2368d2fbb Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9238 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
16e90dbded
commit
57d60b9f17
@ -1014,9 +1014,11 @@ sock_uring_group_reap(struct spdk_uring_sock_group_impl *group, int max, int max
|
||||
|
||||
switch (task->type) {
|
||||
case SPDK_SOCK_TASK_POLLIN:
|
||||
#ifdef SPDK_ZEROCOPY
|
||||
if ((status & POLLERR) == POLLERR) {
|
||||
_sock_prep_recv(&sock->base);
|
||||
}
|
||||
#endif
|
||||
if ((status & POLLIN) == POLLIN) {
|
||||
if (sock->base.cb_fn != NULL &&
|
||||
sock->pending_recv == false) {
|
||||
|
Loading…
Reference in New Issue
Block a user