#include "UserspaceEvent.h"
#include "common/dout.h"
-#include "include/assert.h"
+#include "include/ceph_assert.h"
#define dout_subsys ceph_subsys_dpdk
#undef dout_prefix
}
Tub<UserspaceFDImpl> &impl = fds[fd];
- assert(!impl);
+ ceph_assert(!impl);
impl.construct();
ldout(cct, 20) << __func__ << " fd=" << fd << dendl;
return fd;
if (impl->activating_mask) {
if (waiting_fds[max_wait_idx] == fd) {
- assert(impl->waiting_idx == max_wait_idx);
+ ceph_assert(impl->waiting_idx == max_wait_idx);
--max_wait_idx;
}
waiting_fds[impl->waiting_idx] = -1;
int fd;
uint32_t i = 0;
int count = 0;
- assert(num_events);
+ ceph_assert(num_events);
// leave zero slot for waiting_fds
while (i < max_wait_idx) {
fd = waiting_fds[++i];
events[count] = fd;
Tub<UserspaceFDImpl> &impl = fds[fd];
- assert(impl);
+ ceph_assert(impl);
masks[count] = impl->listening_mask & impl->activating_mask;
- assert(masks[count]);
+ ceph_assert(masks[count]);
ldout(cct, 20) << __func__ << " fd=" << fd << " mask=" << masks[count] << dendl;
impl->activating_mask &= (~masks[count]);
impl->waiting_idx = 0;