27 lines
917 B
Diff
27 lines
917 B
Diff
From 26734825de99f514827ee863592cf04fe2fc9231 Mon Sep 17 00:00:00 2001
|
|
From: Fabio M.Di Nitto <fdinitto@redhat.com>
|
|
Date: Tue, 22 Mar 2022 15:40:42 +0100
|
|
Subject: [PATCH] [tx] fix epoll event size to scope with extra event on send to link
|
|
Reference: https://github.com/kronosnet/kronosnet/pull/377/commits
|
|
|
|
---
|
|
libknet/threads_tx.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libknet/threads_tx.c b/libknet/threads_tx.c
|
|
index 1d954d6..3f43037 100644
|
|
--- a/libknet/threads_tx.c
|
|
+++ b/libknet/threads_tx.c
|
|
@@ -676,7 +676,7 @@ static void _handle_send_to_links(knet_handle_t knet_h, struct msghdr *msg, int
|
|
void *_handle_send_to_links_thread(void *data)
|
|
{
|
|
knet_handle_t knet_h = (knet_handle_t) data;
|
|
- struct epoll_event events[KNET_EPOLL_MAX_EVENTS];
|
|
+ struct epoll_event events[KNET_EPOLL_MAX_EVENTS + 1];
|
|
int i, nev, type;
|
|
int flush, flush_queue_limit;
|
|
int8_t channel;
|
|
--
|
|
2.27.0
|
|
|