]> git.baikalelectronics.ru Git - kernel.git/commit
mvpp2: sync only the received frame
authorMatteo Croce <mcroce@redhat.com>
Thu, 24 Oct 2019 17:24:57 +0000 (19:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Oct 2019 20:44:26 +0000 (13:44 -0700)
commit1bb79a49499d3bb1ad4acc52e94a9a6c4d1f5473
tree1aded7546e094a2bf0f8e89c50a8471dc57facd6
parent334b166661b61c43d649bc888095e39c92e7647a
mvpp2: sync only the received frame

In the RX path we always sync against the maximum frame size for that pool.
Do the DMA sync and the unmap separately, so we can only sync by the
size of the received frame.

Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c