]> asedeno.scripts.mit.edu Git - linux.git/commit
i40e: implement flush flag for ndo_xdp_xmit
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 31 May 2018 08:59:52 +0000 (10:59 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 3 Jun 2018 15:11:34 +0000 (08:11 -0700)
commitcdb57ed07fafb79a250e62d714b8910f2d341ef2
tree353ca80fdedcf529ed7aed7b82f0c9e17ffadfe5
parent42b33468987bac0dd95c30f14820c7abac04a153
i40e: implement flush flag for ndo_xdp_xmit

When passed the XDP_XMIT_FLUSH flag i40e_xdp_xmit now performs the
same kind of ring tail update as in i40e_xdp_flush.  The advantage is
that all the necessary checks have been performed and xdp_ring can be
updated, instead of having to perform the exact same steps/checks in
i40e_xdp_flush

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_txrx.c