diff options
author | Ioana Ciocoi Radulescu <ruxandra.radulescu@nxp.com> | 2018-11-26 16:27:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-28 10:57:45 -0800 |
commit | 5d39dc21482aad384d0a34f44cd06cb841a9ee29 (patch) | |
tree | 2e4bfac82b2123320f1722797932c07257c716d5 /drivers/net/ethernet/moxa | |
parent | 569375fb5732b7d7bb5be126c6243acf658697e4 (diff) | |
download | blackbird-obmc-linux-5d39dc21482aad384d0a34f44cd06cb841a9ee29.tar.gz blackbird-obmc-linux-5d39dc21482aad384d0a34f44cd06cb841a9ee29.zip |
dpaa2-eth: Release buffers back to pool on XDP_DROP
Instead of freeing the RX buffers, release them back into the pool.
We wait for the maximum number of buffers supported by a single
release command to accumulate before issuing the command.
Also, don't unmap the Rx buffers at the beginning of the Rx routine
anymore, since that would require remapping them before release.
Instead, just do a DMA sync at first and only unmap if the frame is
meant for the stack.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/moxa')
0 files changed, 0 insertions, 0 deletions