]> git.baikalelectronics.ru Git - kernel.git/commit
gve: fix dma sync bug where not all pages synced
authorAdi Suresh <adisuresh@google.com>
Tue, 19 Nov 2019 16:02:47 +0000 (08:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Nov 2019 20:58:18 +0000 (12:58 -0800)
commit72dc9cdf9e826f80b7012d63c3548d8ba62c14d8
tree3c56f3cc0471de9ed5b273e73fc18328366c552a
parente65c4f13465d8ff01133128dd981e2a9649b9aa4
gve: fix dma sync bug where not all pages synced

The previous commit had a bug where the last page in the memory range
could not be synced. This change fixes the behavior so that all the
required pages are synced.

Fixes: 2b1119821efd ("gve: Fixes DMA synchronization")
Signed-off-by: Adi Suresh <adisuresh@google.com>
Reviewed-by: Catherine Sullivan <csully@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve_tx.c