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)
commit38c440b24052cad3fa6dcbc32bf8e132da3fe55d
treeea687850c50619a1a30eafef23a10601ab43cbb0
parentf96e87178bb819a2ee25623a6935fa850c2defdd
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