On Wed, 30 May 2018 14:58:16 -0700 Song Liu <liu.song....@gmail.com> wrote:
> > @@ -3699,6 +3699,9 @@ int i40e_xdp_xmit(struct net_device *dev, int n, > > struct xdp_frame **frames, > > } > > } > > > > + if (unlikely(flags & XDP_XMIT_FLUSH)) > > + i40e_xdp_ring_update_tail(vsi->xdp_rings[queue_index]); > > + > > return n - drops; > > Do we still flush when drops > 0? Yes, just as before. Even if all frames are dropped, then it's allowed to update the tail. -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer