diff --git a/apps/lb/lb.c b/apps/lb/lb.c index f26309ff3..25c57c93f 100644 --- a/apps/lb/lb.c +++ b/apps/lb/lb.c @@ -578,7 +578,6 @@ int main(int argc, char **argv) uint32_t free_buf; // Move the packet to the output pipe. - retry: if (nm_ring_space(ring)) { struct netmap_slot *ts = &ring->slot[ring->cur]; free_buf = ts->buf_idx; @@ -591,17 +590,6 @@ int main(int argc, char **argv) goto forward; } - /* try to push packets down to free some space - * in the pipe (no more than once per loop on - * the same pipe, to make sure that there is a - * reasonable amount of time between syncs) - */ - if (port->last_sync != iter) { - port->last_sync = iter; - ioctl(port->nmd->fd, NIOCTXSYNC, NULL); - goto retry; - } - /* use the overflow queue, if available */ if (!oq) { dropped++;