af-packet: leave reading loop at each turn

The idea of this patch is to be sure to leave the ring reading loop
enough to be able to sync counters. This should fix #706.
pull/300/merge
Eric Leblond 12 years ago committed by Victor Julien
parent eae4de9850
commit 350d761961

@ -838,6 +838,8 @@ int AFPReadFromRing(AFPThreadVars *ptv)
next_frame: next_frame:
if (++ptv->frame_offset >= ptv->req.tp_frame_nr) { if (++ptv->frame_offset >= ptv->req.tp_frame_nr) {
ptv->frame_offset = 0; ptv->frame_offset = 0;
/* Get out of loop to be sure we will reach maintenance tasks */
SCReturnInt(AFP_READ_OK);
} }
} }

Loading…
Cancel
Save