From dcf754b73574b5716ada5eb6064ab374e7b2b964 Mon Sep 17 00:00:00 2001 From: rainbow_0206 Date: Tue, 11 Sep 2018 17:21:43 +0800 Subject: Fix: fix epoll problem The same fd can be added to different epoll. Change-Id: Ib9d6a6a2f69879dea2fea8d9ae8348d2746b89d5 Signed-off-by: rainbow_0206 --- stacks/vpp/adapt/dmm_vcl_adpt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stacks/vpp/adapt/dmm_vcl_adpt.c') diff --git a/stacks/vpp/adapt/dmm_vcl_adpt.c b/stacks/vpp/adapt/dmm_vcl_adpt.c index 1b2b9a9..d4974e2 100644 --- a/stacks/vpp/adapt/dmm_vcl_adpt.c +++ b/stacks/vpp/adapt/dmm_vcl_adpt.c @@ -35,6 +35,7 @@ vpphs_ep_ctl_ops (int epFD, int proFD, int ctl_ops, tmpEvt.data.ptr = pdata; tmpEvt.events = events->events; + tmpEvt.events |= (EPOLLIN | EPOLLOUT); if (DMM_VCL_ADPT_DEBUG > 0) clib_warning ("DMM VCL ADPT<%d>: epfd=%d,fd=%d,ops=%d, events=%u", -- cgit