Skip to content

Commit

Permalink
lb: remove the optimization that was causing reordering problems
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppelettieri committed Apr 28, 2016
1 parent 1858973 commit 325dfde
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions apps/lb/lb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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++;
Expand Down

0 comments on commit 325dfde

Please sign in to comment.