dpaa2-eth: split the .ndo_xdp_xmit callback into two stages
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 22 Apr 2020 12:05:12 +0000 (15:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 03:11:29 +0000 (20:11 -0700)
commit6aa40b9e5b1ee732e07e406ffa6e17d152b3a216
treecf93e40dde4c1826929439c3526602bd22973be4
parent6ff8044751bdc40fd3199813bfe9b93d056fc15d
dpaa2-eth: split the .ndo_xdp_xmit callback into two stages

Instead of having a function that both creates a frame descriptor from
an xdp_frame and enqueues it, split this into two stages.
Add the dpaa2_eth_xdp_create_fd that just transforms an xdp_frame into a
FD while the actual enqueue callback is called directly from the ndo for
each frame.
This is particulary useful in conjunction with bulk enqueue.

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