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)
commitdb96c2cb4870173ea9b08df130f1d1cc9b5dd53d
tree3c56f3cc0471de9ed5b273e73fc18328366c552a
parent075e238d12c21c8bde700d21fb48be7a3aa80194
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: 9cfeeb576d49 ("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