]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: add bulking to XDP_TX
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 13 May 2020 13:55:46 +0000 (16:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 20:45:25 +0000 (13:45 -0700)
commitb327bf3e2fee9cdfe6b13b9655ecb6c46e56a1bb
tree2f6710f302fbc306fc1d0f073a4d37fc35272140
parent6e773f4796037320f1d3463718ef44c586c9c160
dpaa2-eth: add bulking to XDP_TX

Add driver level bulking to the XDP_TX action.

An array of frame descriptors is held for each Tx frame queue and
populated accordingly when the action returned by the XDP program is
XDP_TX. The frames will be actually enqueued only when the array is
filled. At the end of the NAPI cycle a flush on the queued frames is
performed in order to enqueue the remaining FDs.

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