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)
commite1921168bbd4810de4197446e52f652cd0dd9541
tree1aded7546e094a2bf0f8e89c50a8471dc57facd6
parent7f7183af448ac55da9cc72bdbef6d140909fee83
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