On Wed, 2015-06-17 at 15:59 -0400, Willem de Bruijn wrote: > From: Willem de Bruijn <will...@google.com> > > PACKET_FANOUT_LB computes f->rr_cur such that it is modulo > f->num_members. It returns the old value unconditionally, but > f->num_members may have changed since the last store. Ensure > that the return value is always < num. > > When modifying the logic, simplify it further by replacing the loop > with an unconditional atomic increment. > > Fixes: dc99f600698d ("packet: Add fanout support.") > Suggested-by: Eric Dumazet <eduma...@google.com> > Signed-off-by: Willem de Bruijn <will...@google.com> > ---
Acked-by: Eric Dumazet <eduma...@google.com> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html