]> 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)
commita2d4b5894c8aafb112bfef035ef880d9ae65a0b1
tree1aded7546e094a2bf0f8e89c50a8471dc57facd6
parent79fbe6ce5d5b656d2f86613e7df8b4a722b4ad09
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