]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab7afd3ddef3707a5bb6bf1c9c21e7d8eca4aee4
treecf93e40dde4c1826929439c3526602bd22973be4
parentaa5b41a7b81e83dac4059a8d2431506e28405c45
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