]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: create a function to flush the XDP fds
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 6 May 2020 17:47:17 +0000 (20:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 May 2020 00:40:02 +0000 (17:40 -0700)
commit06331d2594804616e728a86cca5a2f6c37438774
treeea687850c50619a1a30eafef23a10601ab43cbb0
parent788bc3c2e88eefebc4e0fc087d583b35f41136de
dpaa2-eth: create a function to flush the XDP fds

Create an independent function that takes a particular frame queue and
an array of frame descriptors and tries to enqueue them until it hits
the maximum number fo retries. The same function will be used in the
next patch also on the XDP_TX path.

Also, create the dpaa2_eth_xdp_fds structure to incorporate the array of
FDs as well as the number of FDs already populated.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h