diff options
author | Florin Coras <fcoras@cisco.com> | 2021-06-04 10:07:55 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2021-06-16 22:11:32 +0000 |
commit | fe286f7d17a41ee2c2bee8b93fe1dd1a3b6ba10e (patch) | |
tree | cf95c9edaf9adf574c6bf04f2e81f481c74450bb /src/plugins/hs_apps/vcl/sock_test_server.c | |
parent | 4fc68ee54a1951051d73a482eaa3ddcdb9974445 (diff) |
vcl: basic support for epoll level-triggered evts
Type: feature
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I2d5039cd35edd02ffa2439bcac119d0647234385
Diffstat (limited to 'src/plugins/hs_apps/vcl/sock_test_server.c')
-rw-r--r-- | src/plugins/hs_apps/vcl/sock_test_server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/hs_apps/vcl/sock_test_server.c b/src/plugins/hs_apps/vcl/sock_test_server.c index 6e4d6ea17fd..d516c1722db 100644 --- a/src/plugins/hs_apps/vcl/sock_test_server.c +++ b/src/plugins/hs_apps/vcl/sock_test_server.c @@ -292,7 +292,7 @@ new_client (void) struct epoll_event ev; int rv; - ev.events = EPOLLIN; + ev.events = EPOLLET | EPOLLIN; ev.data.u64 = conn - ssm->conn_pool; rv = epoll_ctl (ssm->epfd, EPOLL_CTL_ADD, client_fd, &ev); @@ -329,7 +329,7 @@ socket_server_echo_af_unix_init (sock_server_main_t * ssm) if (rv < 0) stfail ("echo_af_unix_init listen()"); - ssm->af_unix_listen_ev.events = EPOLLIN; + ssm->af_unix_listen_ev.events = EPOLLET | EPOLLIN; ssm->af_unix_listen_ev.data.u32 = SOCK_TEST_AF_UNIX_ACCEPT_DATA; rv = epoll_ctl (ssm->epfd, EPOLL_CTL_ADD, ssm->af_unix_listen_fd, &ssm->af_unix_listen_ev); @@ -542,7 +542,7 @@ main (int argc, char **argv) if (ssm->epfd < 0) stfail ("main epoll_create()"); - ssm->listen_ev.events = EPOLLIN; + ssm->listen_ev.events = EPOLLET | EPOLLIN; ssm->listen_ev.data.u32 = ~0; rv = epoll_ctl (ssm->epfd, EPOLL_CTL_ADD, ssm->listen_fd, &ssm->listen_ev); |